UI Policy on child form to set policy on parent form?

Jeff F
Kilo Contributor

Hi, I am new with ServiceNow and have what I thought was an 'easy' request.

We have a business need that when certain conditions are met on the change task form and parent change fields, we then want fields on the parent form to be required.

I verified condition is met (true) but the parent form fields are not having policy applied.

Here is the UI policy and parent fields. 

Thanks in Advance for any guidance,

Jeff

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Harsh Vardhan
Giga Patron

i think this can be accomplish through display business rule. and then you will use it in your client script on change_request table.

 

adding one thread here kindly refer that.

 

https://community.servicenow.com/community?id=community_question&sys_id=7dcf4f65dbdcdbc01dcaf3231f96...

View solution in original post

3 REPLIES 3

Harsh Vardhan
Giga Patron

i think this can be accomplish through display business rule. and then you will use it in your client script on change_request table.

 

adding one thread here kindly refer that.

 

https://community.servicenow.com/community?id=community_question&sys_id=7dcf4f65dbdcdbc01dcaf3231f96...

Thanks Harshvardhan. that link has gotten me almost there. 

The client Script correctly evaluates and set the addErrorMessage. However, the form show the error for only a second and then some other process 'ignores' or 'overrides' the error being set. Dumb question but is there client script to hard stop the onSubmit or advice on how to isolate that overwriting process?

Thanks again in advance,

Jeff

Jeff F
Kilo Contributor

Like I said I am new.... I added the

return false;