Populating one variable based on another variable on a form

Diana27
Tera Guru

Hi,

I have 2 variables in a variable set that I am using on a form.  The first variable is requested_for using the type Requested For:

find_real_file.png

I have another variable manager.

All I need to do is populate that variable (manager) with the manager of the user in Requested For.  This should be easy, however it is taking all day and I still cannot get it to work.  I'm about to go insane.

Thanks in advance for any assistance.

Diana

1 ACCEPTED SOLUTION

no... you need to create a catalog client script, not the regular client script. Instead of table, field you select variable set, variable. it should look more or less like this:

 

find_real_file.png

View solution in original post

18 REPLIES 18

Allen Andreas
Administrator
Administrator

Hi,

This should follow the same concept as a normal reference field.

What have you tried so far? Unfortunately, you didn't specify so I didn't want to waste anyone's time suggesting something you've already tried yourself.

With that said though, do you have this variable being populated onLoad with a name and you just want the manager for the other field? Or is this field editable and the user could change it, so you need to dynamically be able to swap to the next person they've selected and their manager? Or both scenarios?

Please provide more information.

Please mark reply as Helpful/Correct, if applicable. Thanks!

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

You can simply use:

javacsript:current.variables.requested_for.manager;

Or whatever your "requested_for" variable name is, use that.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

 

Would that be put in the reference qualifier?

Hi,

Default value.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!