Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only 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: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

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
I hope this answers your question.

Steven
You do not have the required permissions to view the files attached to this post.
Post Reply