Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
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.
Motivation and Context
If "Submit" button added on a module, this feature will disable the button until related field is populated or validated. In this scenerio, the record view has "Submit", "Save and Continue" and "Cancel" buttons. Instead of "Save" button, we have "Save and Continue" but this doesnt submit the record to database. It actually save the record temporarily and doesnt exist edit view. When all fields are ready to be sent to database, "Submit" button is clicked. But, some fields are necessary to be populated to be able submit the record.
How To Test This
Create a submit button on a module. This button needs to send the data to database after an edit. During editing, without populating required fields (required_f_submit flag in their related detailviewdefs' fields), submit button needs to be kept disabled until all required fields are populated.
Types of changes
Final checklist