List boxes: Default values

List boxes: Default values

Question:
In a pop-up list, how do you get the value associated with the default value to appear in the listbox before clicking on the field? For example, I have a pop-up list containing marital statuses. I want ‘Single’ to appear in the listbox windowwithout the user having to scroll the list. How can I achieve this?

Answer:
To set a value in a list box, all you have to do is to set the Value property of the list box to the actual value of the entry in the list box. To make a value the default for a pop-up list, you must set the DefaultValue property to the actual value of the desired item.

If your Translation property for the pop-up list looks like this:
Single = 1
Married = 2
Divorced = 3
Widowed = 4
your DefaultValue for the pop-up should be 1 to make ‘Single’ the default value.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

©2023 Copyright DevX - All Rights Reserved. Registration or use of this site constitutes acceptance of our Terms of Service and Privacy Policy.

Sitemap