How can you configure a dropdown in VDesigner to ensure that a specific default value is automatically selected when the page loads? Additionally, how can you allow users to modify this selection if they wish to choose a different value, regardless of whether the dropdown is populated through enumerations or a service?
Hi @Ritik_Dixit ,
To achieve this functionality, follow these steps:
-
On the page create event of the page, copy the code or value to an object in the entity where you want to store the dropdown’s selected response. Then, reload the dropdown.
-
Pass the code or value to the default property of the dropdown. If the user wants to change the selection, they can choose a different option from the dropdown. Use the
getenumobj()
function to copy the selected option from the dropdown. Additionally, apply BR (Business Rules) for any required conditions.
2 Likes