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.

Field value not capture on form save in ServiceNow Portal(OOB Form Widget)

AlwinJebakY
Tera Expert

In ServiceNow, I used the OOB Form Widget in the portal to display a form and view for specific table. 

Now the user is able to edit the fields, but when the user clicks Save, some field's value is not getting captured. 

That field's value is being set correctly through an OnChange client script and it displays properly on the form.

However, when the Save button is clicked, that field becomes empty. 

I checked no OnSubmit Client script is there and in a Before BR the field values are indeed empty. 

There are no ACLs restricting access
In Native UI it will be working perfectly, problem is in Portal only.

Could there be any other possible issue? 

10 REPLIES 10

Ankur Bawiskar
Tera Patron
Tera Patron

@AlwinJebakY 

how is the behavior in native? if it's working fine then something is causing the issue.

was this working fine earlier?

Did you recently upgrade?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

In native UI after OnChange client script it displays properly, 
and click the save button it will capture and store it. 

but in portal it will set the value but not capture and store it

@AlwinJebakY 

what if you disable that client script?

what's the behavior in native and portal?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

If disable that OnChange client script it will not put data for some other fields. 

I need that fill some other fields. 

In native and portal, i need to save the data.
For example if user choose the User list in one field, i need to auto populate the user groups on another field based on the selection. 
and click the save button it will store in my custom table.