User Tools

Site Tools


Form Functions

This is used to access functions such as lookups, and is normally attached to a button.

The main lookups available are as follows:


This uses an external postcode lookup to find the address details matching a given postcode. This does not lookup the house name or number which must be entered by the user.

  • article_form_user_xx must identify the column containing the postcode
  • READONLY;LIB=address_line1 - address line 1 to be populated
  • READONLY;LIB=address_line2 - address line 2 to be populated
  • READONLY;LIB=address_line3 - address line 3 to be populated
  • READONLY;LIB=address_town - address town to be populated
  • READONLY;LIB=address_county - address county to be populated
  • READONLY;LIB=address_country - address country to be populated
  • READONLY;LIB=address_client - (optional) if using a multi-client setup, this can be used to lookup the client identified with the postcode
  • LIB=address_common_bond - (optional) will test that the address given matches the common bond postcode list

This also uses an external postcode lookup to find the address details matching a given postcode. However this version provides a pick-list of valid addresses for the user to choose from, ensuring that only valid addresses can be entered.

The address fields provided should be the same as above, with the following addition:

  • READONLY;LIB=address_company - used where the selected address is a business

This calculates the monthly repayments based on the MONTHLY_INTEREST value set (eg JS=calc_monthly_repayment(3) will use a monthly rate of 3%).

The following library fields must be set:

  • LIB=loan_term
  • LIB=loan_amount
  • LIB=calc_monthly_repayment

IF LIB=loan_repayment_frequency is set (MONTHLY, FORTNIGHTLY, WEEKLY) this will be used - otherwise the default will be MONTHLY.

The calculation is based on the values of loan_term and loan_amount entered by the user, and the result is shown in calc_monthly_repayment (which should therefore be set to READONLY).

form_functions.txt · Last modified: 2018/10/01 11:28 by geelling