Set Field Values Using Server Side Run Script

Gerald Onyia
Kilo Guru

My team and I have encountered an issue when trying to automate a service catalog item.

We cannot set some variables due to their onChange and onLoad rule/client script. We have many catalog items like this, and need a way to automate them. I've heard using a Run Server Side Script to set the field values might work. I am not sure how to go about doing this. I would appreciate any guidance on how to do this.

6 REPLIES 6

Chaitanya Redd5
Tera Guru

Hi Gerald,

There are some client side limitations in ATF where the client side changes can not be tested.

To set the values using the set values twice can be the solution which I did and it worked fine for me.

For Example : Subcategory is dependent on Category field, so if we try to set the category and subcategory at once using set value in ATF so it will not work. In first set value we only set the Category and again in next step(set value) set the subcategory and then save the form, this works well. This works because the client script runs in between the execution of 2 steps and we have the required information available on form.

Please mark my answer as Correct and helpful based on the Impact.

Regards,

Chaitanya

Hello!

I had already tried this. It does not work for the onChange and onLoad client rule.

It only works on variables that have fixed (hard-coded) values in their subsequent child trigger variables.

Thanks!