Difference between revisions of "Edit Condition"

From SmartWiki
Jump to: navigation, search
Line 7: Line 7:
 
Entering the following into a User/Contact Standard Field Edit condition will ensure that only Global User Administrators are permitted to set the e-mail address of any contacts that are assigned as Local or Global User Administrators within the system.
 
Entering the following into a User/Contact Standard Field Edit condition will ensure that only Global User Administrators are permitted to set the e-mail address of any contacts that are assigned as Local or Global User Administrators within the system.
  
  instr("@type@","Admin")<0 or instr("@me.type@","Global")>0 or "@user@"="@me.userid@"
+
  instr("@type@","Admin")=0 or instr("@me.type@","Global")>0
  
  
 
For further examples see the [[Visibility Condition]] page.
 
For further examples see the [[Visibility Condition]] page.

Revision as of 11:55, 20 June 2011

The Edit Condition setting on Standard Fields determines whether the field will appear on the page as read only or as an editable field. The syntax used is the same as for the Visibility Condition.

If the logical statement entered is true the field will be editable. If the logical statement is false the field will appear as read only.

  • Note: if the Visibility Condition is false the Edit Condition is ignored since the field will not appear on the page.

Example

Entering the following into a User/Contact Standard Field Edit condition will ensure that only Global User Administrators are permitted to set the e-mail address of any contacts that are assigned as Local or Global User Administrators within the system.

instr("@type@","Admin")=0 or instr("@me.type@","Global")>0


For further examples see the Visibility Condition page.