filtering reference field based on variable selection

vibee
Kilo Expert

Hi,

I am currently trying to set up an OnChange Client script that filters a reference based on the choice of a variable selected before.

Scenario:

If user click "Corporate" or "Residence" in the emp_office_type field

the reference field should filter either 'nameLIKECorporate' or 'nameLIKEResidence'

how would I script this? I have one that filters a slushbucket, but that does not work for the reference field.

1 ACCEPTED SOLUTION

Vibee,



    You will have to use current.variables.emp_office_type not current.emp_office_type. How can I miss that





Thanks,


Abhinay




Please mark Helpful, Like, or Correct depending on the impact of the response


View solution in original post

6 REPLIES 6

Vibee,



    You will have to use current.variables.emp_office_type not current.emp_office_type. How can I miss that





Thanks,


Abhinay




Please mark Helpful, Like, or Correct depending on the impact of the response


Haha,



Don't worry Abhinay, everyone misses things once in a while.



And that did work. It filters correctly now.



Thank you!