Unable to view value in form

Nazhath1
Giga Expert

Hello 

 

I am able to view the value for a filed in list view , but when I open the form, the value gets cleared. I have deactivated all the backend policies, but its still not working.

 

The value is being populated via REST API POST method, using postman

 

Nazhath1_0-1666886865485.png

 

Nazhath1_1-1666886926879.png

 

Please advice!

1 ACCEPTED SOLUTION

@Nazhath1 ,

 

If the issue is happening only on form then most probably there is any client script or UI policy doing this.  Since you can see the name and link for a reference field in the list, it is convincing that record do exist (I beleive clicking on the item name from list view would be opening the catalog item). For troubleshooting purpose I would suggest follow below Procedures:

1. Open the RITM in the middle pan of the servicenow home page and then click on the gear icon available at top right, go to the Developer section and enable the Javascript Log and field watcher. You will see servicenow debugger has open at the bottom of the page

kamleshkjmar_0-1666952473751.png

 

2. Now reload the RITM form and right click on the field on which you are having this issue. I beleive you see this issue in Item field, so right click on that and select Watch field. If watcher gets set then it shows a  bug icon next to the field 

kamleshkjmar_1-1666952527277.png

kamleshkjmar_2-1666952566182.png

 

3. Now reload the form, wait for the form to complete the load and then go to the Field Watcher section of the debugger and see if you see any clent script name or UI policy showing value change from 039c516237b1300054b6a3549dbe5dfc to (empty)

kamleshkjmar_3-1666952622852.png

 

if you see anything like that then you have found your cultpril.

 

Let me know if you find anything.

 

I Hope this helps.

 

Please mark this helpful if this helps and Accept the solution if this solves your issue.

 

Regards,

Kamlesh

View solution in original post

8 REPLIES 8

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Is there a i icon/preciew icon present beside the field? or is there a onload client script on that field?

Hi Saurav

 

No the I icon is not visible, the I icon disappears as soon as the value is erased. 

 

I have deactivated all client scripts.

What about UI policy? also does the value remain on list view when you open the form? Does the value remain on list view when you update the form

I have deactivated all Ui policy, data policy and business rules, expect OOB ones which is not allowed to be deactivated. The value is on the form in list view.

 

However I just noticed, when I try to update the form , its throwing below error

 

Nazhath1_0-1666946162423.png