You are viewing limited content. For full access, please sign in.

Question

Question

dropdown lookup

asked on November 7, 2023 Show version history

Hello,

I found this original reply from a 2017 post and I'm looking for a current modification.

 

Issue:

I have several tables with dropdowns.  As an option is chosen and the form submitted, a workflow tags that option and it gets remove from the view.  So the next time the form is opened, that option is no longer available in the dropdown.

Eventually, the dropdown list has one item left.  That item is auto-populated in the dropdown on load.  I'd like to have the dropdown always be empty on load and remain chosen (when the option is chosen) on all other lookups are triggered.  
I believe the modification to the code above accomplished the empty on load.

However, as I check the lookup.js file, I see 3 places that it references '<option selected="selected">' and I'm not clear what I need to change to get the desired effect.

Thank You.

 

 

0 0

Answer

SELECTED ANSWER
replied on November 7, 2023

I found a workaround.

I use onloadlookupfinished function(#1) and put in a counter(#1).

If the counter(#1) == 1 then I run a function(#2), that loops through the table.  In function (#2), I use another counter2.  If counter2 == 1, then I set those values to ''. 

So far, works like a charm!

 

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.