Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to make fields mandatory with oncelledit

purbali1
Giga Expert

I want to make a cell editable but madatory on certain condition. Can I use Oncelledit function? Please suggest,

Regards,

Purbali

4 REPLIES 4

Chuck Tomasi
Tera Patron

Hi Purbali,



This feature is available with the Helsinki release with List v3. List editing respects mandatory fields.



Here's a starting point: Use the list editor


Thanks Ctomasi!


Is there any way other than onCellEdit to make fields mandatoryon list view?



Regards,


Purbali


Not pre-Helsinki.


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Purbali,



The other option is to have a alert message on edit of the cell and then have a before business rule and abort the transaction if the required fields are not populated as per condition.


You can display info message to the user in case transaction is aborted.