User Tools

Site Tools


special_treatment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
special_treatment [2016/06/26 10:59]
geelling
special_treatment [2017/02/28 10:09] (current)
geelling
Line 22: Line 22:
 TYPE=EMAIL:​DOMAIN=somedomain.com,​otherdomain.org.uk - a specific case of the email type, which will only allow emails matching the given domains to be used TYPE=EMAIL:​DOMAIN=somedomain.com,​otherdomain.org.uk - a specific case of the email type, which will only allow emails matching the given domains to be used
  
-[due 1-August-2015]:​ 
 TYPE=DATE expanded to allow all of the following TYPE=DATE expanded to allow all of the following
   * TYPE=DATE:​FUTURE - allow only future dates   * TYPE=DATE:​FUTURE - allow only future dates
Line 41: Line 40:
 READONLY - this makes a field readonly, this is particularly useful for address lookup fields where the lookup will populate the field, and you do not want the user to be allowed to overwrite the information READONLY - this makes a field readonly, this is particularly useful for address lookup fields where the lookup will populate the field, and you do not want the user to be allowed to overwrite the information
  
-**JS** ​function+**JS=form_function**
  
-JS=javascript_function - this is used to access functions such as lookups, and is normally attached to a button. ​ The main lookups available are as follows:+This is used to access functions such as lookups, and is normally attached to a button.
  
-== JS=Javascript:​SPLGetAddressData(document.getElementById('​article_form_user_xx'​).value) == +[[form_functions|View ​the list of form functions]]
- +
-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+
  
 **UPDATESOURCE** **UPDATESOURCE**
special_treatment.1466931550.txt.gz · Last modified: 2017/02/20 16:49 (external edit)