Onchange client script not working when updating a record from importsets

sekharksnow
Tera Contributor

Hi, 

I am facing an issue of onchange client script, when manually update the form field the client script working properly. But when updating the record form import sets the onchange client script not working. Can you please provide solution.

2 ACCEPTED SOLUTIONS

KevinBellardine
Kilo Sage

Client scripts run in browser, they won't do anything for record updates that are made from import sets, business rules, etc. You'll need a business rule or possibly a scripted transform here.

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@sekharksnow 

client script runs on front end and import set runs in background so it won't work.

to validate data you need to use onBefore transform script

 

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

View solution in original post

2 REPLIES 2

KevinBellardine
Kilo Sage

Client scripts run in browser, they won't do anything for record updates that are made from import sets, business rules, etc. You'll need a business rule or possibly a scripted transform here.

Ankur Bawiskar
Tera Patron
Tera Patron

@sekharksnow 

client script runs on front end and import set runs in background so it won't work.

to validate data you need to use onBefore transform script

 

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