SuiteCRM-Core
SuiteCRM-Core copied to clipboard
Disabling Required For Submit Feature
Issue
Check Detail View defs to see if any field has it's require for submit (required_f_submit) flag set to 'True', if it does, it will disable the "Submit button" until that field is populated. The User should still be able to use the other buttons like 'Save & Continue' without those fields being populated.
Expected Behavior
When any of the field which has required for submit flag has not been populated, it is going to disable submit button.
Actual Behavior
It doesnt disable submit button.
Possible Fix
A logic needs to be added to actions adapter file.
Steps to Reproduce
- Add "required_f_submit: true" flag on a field in detailviewdefs in related module.
- In detail page, in edit mode, populate some required_f_submit fields but not all.
- You will see submit button clickable.
Context
User shouldnt be able to click Submit button without populating all required_f_submit fields.
Your Environment
- SuiteCRM Version used: 8.3.0
- Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome Version 115.0.5790.171 (64-bit)
- Environment name and version (e.g. MySQL, PHP 7): Wamp Server, PHP 7.4.33, MariaDB 10.4.12
- Operating System and version (e.g Ubuntu 16.04): Windows 11
Hey Yunus,
I've given this a Try, but i'm not sure this is replicable. Could you perhaps add more steps to replicate this issue?
I've added required_f_submit to the detailviewdefs of an Account:
However, I'm not sure if this is functionality that exists in the core project, as searching for this returns only the item i've added:
Is this perhaps specific to a customized instance? Or does this need something extra to be a replicable bug?
Thanks!