5 pts.
 Visual Attribute on Form builder
I have two visual attributes(On errors and on noerrors) that make the field value red when the user enter some invalid input like type mismatch or value length is exceed. Then how can set the property on form text field

Software/Hardware used:
ASKED: January 14, 2010  7:18 AM
UPDATED: January 14, 2010  1:39 PM

Answer Wiki:
You should use the 'when-validate-item' trigger to validate the user input, and the SET_ITEM_PROPERTY built-in procedure to set the desired visual attribute if needed. Example: <pre>If length(:your_block.your_item) > your_max_length then Set_Item_Property('your_block.your_item',VISUAL_ATTRIBUTE,'errors'); End if;</pre>
Last Wiki Answer Submitted:  January 14, 2010  1:14 pm  by  carlosdl   63,580 pts.
All Answer Wiki Contributors:  carlosdl   63,580 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _