Able to submit without filling Mandatory field (Journal field) in Geneva Release

knpandian
Kilo Explorer

Hi All

Recently we are facing some issue where we can save the form without filling mandatory field (work notes - Journal field) in Geneva .

In our case,we are encountering this issue in Task level where we are using work notes from Parent form.

Has anybody encountered such a scenario before? Could someone please help me in understanding the root cause?

Thanks

10 REPLIES 10

Please refer to section 3.1 at Creating New Fields - ServiceNow Wiki



A form can be saved with an empty mandatory field, if that field is a reference field (derived from another table) and if the parent field is also blank. However, if the mandatory reference field shows a value from the parent field, then the form cannot be saved if this value is deleted. It is important to note that if the value in the referenced field is changed, the value for that field is changed everywhere it appears.



The workaround way is to add the below highlighted line of code


g_form.setMandatory('problem.work_notes',true);


multiModified(g_form.getControl('problem.work_notes'));