Page 1 of 1

clear lookup field

Posted: Wed Jul 16, 2014 11:18 am
by Tinka
Hi!

Should be easy:
I have three lookup fields on my form.
How can I clear the second and third lookup field, when a new value is chosen in the first?

The 2. and 3. lookup use filters from hidden fields on the form, which are updated by 1. lookup - that part works great.

I tried the "Update other fields" on the lookup tab picking a value from a hidden field; or to clear the fields on the onchange or onblur event of the first lookup:

Code: Select all

$("#pp_pri1idFK").val("");
But it doesn't work. I disabled autocomplete on the first lookup.

BR, Tinka

Re: clear lookup field

Posted: Tue Aug 05, 2014 4:24 am
by admin
Tinka,

(sorry, but I only just noticed your question)
Do this to each on lookup 1..

Code: Select all

$("#pp_pri1idFK").val('');
$("#pp_pri1idFK").change();
Not on an Event but here..
Capture.PNG
I hope this answers your question.

Steven