News & Updates
Training & Certification
to create and rate content, and to follow, bookmark, and share content with other members.
How do i create a "Save" button with condition?
Question asked by
on Jul 29, 2015
on Jul 29, 2015 by yuenchee yuenchee
Show 1 Like
Let's say i have a field and i want an error message to be prompt when the other fields' conditions are not met. And when the error message prompts, i will be allowed to save the record.
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 2 comments
(Required, will not be published)
Jul 29, 2015 9:31 AM
You can create a custom save button. Basically you can copy the regular code of save button and add a js call just before check_form. This js call should validate that field and populate the js array 'validate' which will be processed on check_form and then display the validation messages bellow each unvalidated field.
Show 0 Likes
Jul 29, 2015 10:45 AM
hi, thanks for your reply. Do you have an example of how i can use this js call? Like an example of these codes with a simple formula.
Show 0 Likes
Retrieving data ...
How to get value from parent module (one to many) with Logic Hook?
How to get parent id in logic hook when saving from subpanel?
Failed to load relationship accounts_contacts_1 while saving Accounts
How to get related beans on a custom module's relationships
7.9.2 does getBeans in after_relationship_add logic_hook use cache?