How to do below by using client script

keval3
Tera Contributor

Hi All,

I have below requirement...

in the choice field there are 3 option for ex: A,B,C when I Choose A at that time in user list field I am choosing 2 to 3 users and save the form after that I open same form again and select option B and again choose other 2 to 5 user from user list again save the form after that when I reopen the form and again select option A at that time previously selected user should be their as it is. right now it is removing the user. kindly let me know how to do it.you can refer below ss

keval3_0-1722523729801.png

 

Thanks & Regards

 kp

2 REPLIES 2

Addy22
Tera Guru

Hi @keval3 ,

 

You can create 3 multi line text variables, write one onSubmit client script and get choice value from the choice field(for A,B,C) and the sysIDs selected and put them in the multi line text in comma separated list.[For ex : A,sysDIUser1,sysIdUser2....]

 

And then, write onChange client script , whenever choice field changes, check the new variables and get the values.

 

keval3
Tera Contributor

Hi Adarsh,

 

this is custom table so I am only able to create field not variable.

kindly suggest if I am wrong.

 

Thanks & Regards

KP