NextGen Knowledge Center

Script Functions for Groups

You can use different script functions to generate triggers for #Groups in templates.

The following are the syntax and description of the script functions which support #Groups. You can use the groups as a parameter in the functions.
FunctionSyntaxDescription
SHOWSHOW( «true_false» , «fields\#groups» )Shows or hides item.
ENABLEENABLE( «true_false» , «fields\#groups» )Enables or disables field.
FIELDCOLORFIELDCOLOR( «textcolor», «backcolor», «fieldname(s,)» )Changes field color.
FIELDSTYLEFIELDSTYLE( «style», «fieldname(s,)» )Changes field style.
ASSIGNASSIGN( «source» , «dest1», «dest2»,,, )Assigns source value to the list of destination parameters.
OREQUALOREQUAL( «no case» ,«compare_to», «value1», «value2»,,,, )Compares a value to the fields and variables using OR logic.
EQUALEQUAL( «no case» ,«compare_to», «value1», «value2»,,,, )}Compares a value to the fields and variables using AND logic.
FIELDCOLORFIELDCOLOR( «textcolor», «backcolor», «fieldname(s,)» )Changes field color.
ITEMDATAITEMDATA( «field», «idx» )Obtains item data associated with a template field as specified in the fields item data property.
SETMYPHRASESETMYPHRASE («field», «phrase_type»Sets my phrase type on edit field invoked by # character.
SHIFTFIELDSSHIFTFIELDS( «direction , «pixels», «fields» )Moves field up, down, left, or right by a number of pixels.
SETFONTSETFONT( «fontname» , «size», «bold», «fields» )Sets the font on the template controls.
SETROUNDED{SETROUNDED( «true_false», «field(s)» )}Toggles between rounded corner on panels, edit and push buttons.
SETHOVCOLOR{SETHOVCOLOR( «textcolor» , «backcolor», «fields\#groups» )}Sets the mouse hover color, and back colour of the text or push button.
SETPRESSCOLOR{SETPRESSCOLOR( «backcolor», «fields\#groups» )}Sets selected color of button.
Script Functions for Groups