Form widget clears values after Save

jcmings
Mega Sage

I have duplicated the OOTB form widget and am using it to display case data on a custom page. I am using a custom table that is a child of HR Case and an HR Service built on that custom table. Whenever I save the form (even using OOTB UI actions), the widget "refreshes" and all of the values in string/checkbox fields get cleared. However, the updates do actually push to the server -- if I refresh the page or view the case in the back-end, the updates are there.

 

I believe this has something to do with my table specifically... When I test this using the OOTB form widget, table=sn_hr_core_case and another (HR Service) record's sys_id, the widget "refreshes" but the values stay on the form. If I change only the sys_id to that of my custom HR Service, the values get cleared. So any time my HR Service or table is inputted, the values clear, even on the OOTB form widget.

 

Do I need to add a record watch? I am confused because this appears to work for other HR Services. It may also be worth noting that I am unable to post work notes/comments to the case from the back-end currently. Not sure if this is related somehow.

 

 

6 REPLIES 6

I tried to recreate this in my PDI by creating a Custom COE and HR Service.  Created a case and opened it in the ESC portal using the form widget.  I was able to change the short description and save the record.  It took my change without clearing the value.  So it should be working.

Can you add the versions related list to the widget form on the back end?  See if there is anything listed.  There shouldn't be, but if there is is it using the latest version or patch.  If there's nothing there, then its assumed you are on the latest version.

The only thing I can think of there is another widget or there is code that is doing c.server.update() which clears the values on the widget but doesn't clear it at the database level.

I'm still on Service Portal, not ESC, if that changes anything. I do not see any versions on the widget form. I'm trying to run some debugs on the widget when I click Save... will update if I find anything.