The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Can a field become mandatory before submit?

andresgt
Mega Expert

I currently have two states 'Draft' and 'Analizing'

When loading the 'New' form it only asks as mandatory one field, but before moving from state 'Draft' to 'Analizing' I want to make other fields mandatory and don't let the user move on.

Is that possible or is it best practice to manage mandatory fields on different states?

8 REPLIES 8

Hi Andres,



You dont want to submit the form Right?



First you have to make it mandatory and then again you want to submit it right?



Thank you,




Ashutosh


Yes,



They can save the form, but only when clicking 'Submit' the form should stop the submitting and make all X fields mandatory.


This is strange, i mean even if we save submit is going to get called.



To avoid this we need to handle this using button UI action name.



Let me check this.




Thank you,


Ashutosh


nehas
Kilo Contributor

You can make changes in script of Catalog Client script in OnSubmit type for making the following fields as mandatory while submitting