Hi,
I'm fairly new to smartforms.
I have a bunch of text boxes, checkboxes and radio button groups in my view and they are bound to SmartObject Fields . All these fields are required fields. When the Form or the View is opened, I wanted to indicate that these controls are required either with a red astrisk or a red border around the control. The fields are defined as required in the SmartObject. I'm not intested in using conditional styling as I have write rules in so many places (when Form is initialized then on each controls lose focus, finally on submit button to validate if the values is present or not,etc. ).
I tried view passes validation rule when the view is initialized, this work only for text boxes. i.e. only text boxes are highlighted. The rest of the controls are not bordered red. Also if I add a value to the required text box(that is red bordered) and empty the text box again, the border goes away. So the validation only fires the first time.
Is there a easy way to do this ,just like checking a checkbox on a control that says that the control is required and it would automatically mark the control accordingly no matter whatever edits I make.
Thanks!