Here is how to highlight form text items, which Value Required attribute is set to "Yes" and do not have any value.
Step1:Create dynamic action to page zero
Name: Highlight required
Event: Change
Selection Type: jQuery Selector
jQuery Selector: input[type='text'][required]
Condition: -No Condition-
Action: Execute JavaScript code
Fire On Page Load: True
Code:
if(!$v(this.triggeringElement)){
$(this.triggeringElement).css({"background":"#FFFF77"});
}else{
$(this.triggeringElement).css({"background":""});
}
Selection Type: None
Step2:
Now run application and items having Value Required set to "Yes" background color is changed if item do not have any value.
You can find Value Required setting from item attributes.
OUTPUT:
No comments:
Post a Comment