Solved

Change on dropdown did not trigger rule


Badge +3

I have a Company Type dropdown, when I make change, it use rule to lookup to the company types list to show/hide some field. The rule only apply for first time when it load the page. At runtime, if I made change on the Company Type, the rule won't apply. Any idea?

205405_pastedImage_1.png

205406_pastedImage_2.png

205407_pastedImage_3.png

205408_pastedImage_4.png

icon

Best answer by jackgelo 10 July 2017, 11:54

View original

4 replies

Userlevel 4
Badge +11

Hi,

have you put in your rule the reference to the named control associated to your dropdown or to the item property? Item property keeps the value on form load while named control update the stored value based on the current value in the form..

Giacomo

Badge +3

Did change to control associated with the dropdown already. But still the same.

Userlevel 4
Badge +11

Hi,

because the dropdown is a lookup column, you need to wrap your drpCompanyType reference with the parseLookup function (it should become parseLookup(drpCompanyType, true) ), that's because the Named Control of a lookup field doesn't store only the text value but also the ID, so it wasn't able to resolve all your lookup function..

Badge +3

Yes. Thanks! Its work now.

Reply