set value for a modal lookup dialog (v2021)

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
darkdragon
User
Posts: 148

set value for a modal lookup dialog (v2021)

Post 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?


MichaelG
User
Posts: 1095

Post by MichaelG »

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


darkdragon
User
Posts: 148

Post 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.


Post Reply