Is it possible to have a button triggered popup with dropdown to populate textfield in repeating section?

Currently I have Nintex Form with a repeating section containing mutliple fields, among a few dropdown ones. Now the user wants to remove values (in the lookup list) and replace them with other, without selected old values in existing documents not to change. So my first thought was to replace the 2 involved dropdowns with a text field and populate them by clicking a button showing a popup with the latest dropdown values.

How would I do this, most likely using some custom JavaScript? Any other possible solutions are also welcome.

Re: Is it possible to have a button triggered popup with dropdown to populate textfield in repeating section?

Hi Marian,

First of all happy new year and a lot of Nintex fun (also to all other community members).

The list lookup values can change over time (removed, new ones added), but removed/modified ones need to show the original value in existing forms when opening for Edit; currently those items will disappear or show the changed value in stead. So I was thinking of replacing the list lookup dropdown with a text field and use a button with JS to popup a list lookup dropdown which pastes the selected value in the text field. All this within a repeating section.

Re: Is it possible to have a button triggered popup with dropdown to populate textfield in repeating section?

First of all happy new year and a lot of Nintex fun (also to all other community members)

same to you, and to whole community

hmm, basic rule for lookup lists is (should be) that you never delete items from it. especially not ones which are being referenced from other lists.

it's their purpose/advantage that they internally work based on IDs so you can freely change displayed/presented text value with no impact on functionality.

if some of the items should not be used/allowed for new items anymore, I would solve it by a status flag field (active/not active| and applied a filter in forms (I know this need not be always easy with nintex forms if you need to apply several filters).

if you really want just to store a text value valid at a timepoint when an item is being created then I would completely ruled lookup controls out. they are anyway big performance issue within repeating section.

I would rather used textbox with autocomplete functionality - it pretends kind of 'list of value' approach but still allows you to input/display value out of the provided list of values (eg. removed entry from lookup list).

Re: Is it possible to have a button triggered popup with dropdown to populate textfield in repeating section?

Thanks Marian,

But working with the flaf column depending calculated field does not work correctly for items with a disabled option as it would show empty in Edit mode. On saving it would be cleared, at least in my tests it did.