How to apply flash for mandatory fields?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2015 11:46 PM
Hi,
function onSubmit() {
var fieldCheck = g_form.getValue('u_yes');
if (fieldCheck=='false') {
g_form.setMandatory('u_yes', true);
alert('The top five fields in this form are mandatory');
g_form.getControl('yes').focus();
return false;
}
}
Iam getting an alert and field is also to madatory on running this code. But I want flash at the time when alert appears. "g_form.flash" is not working. Is there any alternate for this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2015 11:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 12:02 AM
Same thing I applied. But no use. g_form.flash("abc.yes", "#FFFACD", 0); I have a label on top of check-box which i set to mandatory on submit. Same time i need flash. The above is code is not working. Even it is not working for any field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 12:24 AM
In g_form.flash("tablename.field", "#FFACD",0), table name i have give is abc. Should that table contain field specified. My field here is checkbox.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2015 12:40 AM
Is table name abc or u_abc. I think this is a custom table and it should be u_abc.