Skip to main content
Nintex Community Menu Bar
Solved

Change on dropdown did not trigger rule

  • July 9, 2017
  • 4 replies
  • 12 views

Forum|alt.badge.img+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

Best answer by jackgelo

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..

4 replies

Forum|alt.badge.img+11
  • Scout
  • 444 replies
  • July 10, 2017

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


Forum|alt.badge.img+3
  • Author
  • 8 replies
  • July 10, 2017

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


Forum|alt.badge.img+11
  • Scout
  • 444 replies
  • Answer
  • July 10, 2017

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..


Forum|alt.badge.img+3
  • Author
  • 8 replies
  • July 10, 2017

Yes. Thanks! Its work now.