Page 1 of 1

set value for a modal lookup dialog (v2021)

Posted: Sun Feb 26, 2023 5:25 pm
by darkdragon

Hi,

In an ANM v2021 project I have a column with modal lookup dialog (old format, paginated)
I want to set the default selected value [Link field] at page load. I achieve this this with jQuery:

$('#x_FieldID').val('value').change()

But for the [Display Field] of the selected value I only managed this by using an additional API call.
Is there any other way to extract the [Display Field] from the modal object?


Re: set value for a modal lookup dialog (v2021)

Posted: Mon Feb 27, 2023 6:33 am
by MichaelG

You can set the default value at Fields -> Add Page -> Default Value.


Re: set value for a modal lookup dialog (v2021)

Posted: Fri Mar 03, 2023 3:19 am
by darkdragon

Well, that will be easy, but I want to jump from page to page using a GET parameter.
I want to filter a modal lookup dialog based on some API calls based on that param.