Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

clear lookup field

Post Reply
Tinka
Posts: 73
Joined: Mon Feb 24, 2014 2:58 pm

clear lookup field

Unread post 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
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: clear lookup field

Unread post 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
Capture.PNG (46.04 KiB) Viewed 1544 times
I hope this answers your question.

Steven
Post Reply