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 obtain SugarBean from a relate field?
How can I link cases to contacts and not accounts?
SugarBean best practices for working with related records
Create note with attachment with php and sugar api
Module Relationships load_relationship()