Survey / client script

gabriel_sk
Tera Contributor

Hello team,

I am quite new to this Servicenow but I really would like to learn how to work with it, so forgive the probably very newbie question

I would like to create a script that will update a field in a table when the survey is submitted.
I read in different posts that the script for survey is hosted in ui_page > survey_take, is there a way to create a script in "Client Script" that interact with the survey page without having to modify the survey_take?

Thanks:)

1 REPLY 1

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Gabriel



Could you please elaborate a little bit more ? Which table you want to update when the survey is created ?


For instance supposing you want to update an incident field when the survey is created than you don't need to work on the client script.


You need to focus on the survey instance table and create a business rule that using the information available on instance will update the other record.


In my example a field on incident table.



Regards


R0b0