Auto populates value is not getting saved to catalog variable

sowmyaj
Giga Expert

Hi All,

I'm auto populating the serial number based on hostname and which is working fine on catalog task level but when I save the catalog task form, I see blank value on serial number

find_real_file.png

Before saving the form

find_real_file.png

After saving the form

find_real_file.pngfind_real_file.png

Any help will be appreciated.

Thanks,

sowmya

1 ACCEPTED SOLUTION

sowmyaj
Giga Expert

Field readonly feature was causing the issue.

 

Resolved the issue by setting value first and setting readonly to true.

View solution in original post

7 REPLIES 7

Hi Harsha,



Please check the Script include,



find_real_file.png



The newValue and the getValue will hold the same value. I have verified with fetching form value instead of passing the newValue. The issue I'm facing is not with the population of value but having value on the variable once I save the form. I'm not getting why g_form.setValue is not retrieving the value once the form gets saved.



Thanks,


Sowmya


would you mind to put alert() in your client script. before setting the value put the answer in alert. alert(answer). check if it's give the value on locating the form . if it's giving then check something interrupting on that field. also for testing try to set it in different field to make sure it's not an issue with script


sowmyaj
Giga Expert

Field readonly feature was causing the issue.

 

Resolved the issue by setting value first and setting readonly to true.