Question


MCM
IN
Last activity: 29 Aug 2025 6:07 EDT
Dropdown Default Value in Table- Constellation
Hi Team,
There is a requirement, where we have a table and inside that we have column called "Status" and it's dropdown.
Now when user adds new row, then we need to display a default value for that dropdown property (In constellation, we don't see default value option).
Thanks,
Vignesh.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 10 Jan 2025 2:33 EST
EvonSys
IN
Default value for dropdown can be set from the dropdown list. Remove the place holder on Dropdown prop in view and ensure the default value is the first value in dropdown list.


EY
IN
@Kishore Kumar Madduri , the row deletion is not happening when placeholder is removed. It works fine when placeholder is added though.


Rulesstack Private Limited
IN


MCM
IN
@Mohd Qizer Uddin @KishoreKumarMadduri - Thanks both, it worked!
Also, there is an another requirement, where we have a table and inside that we have column called "ConfirmStatus" and it's boolean.
Now when user adds new row, then we need to display a default value for that boolean property as true.
How to achieve this?
Updated: 15 Jan 2025 3:52 EST
EvonSys
IN
As it's a Boolean property, UI for the property will be checkbox, so it will be displayed as a checkbox in the table and if you want it to be checked default, we have no option but in order to achieve this. Create a Declare onChange in Work Class, properties to Watch = Pagelist.booleanProperty and create onchange activity and loop through pagelist and set the boolean property to true. OR
If you wanted to display true or false instead of checkbox as a dropdown, change the datatype of the property to text and UI control as dropdown and Table type as prompt list add true and false and in View remove the Placeholder.


EY
IN
Hi @Mohd Qizer Uddin, implemented your suggestion but the row deletion is not happening when placeholder is removed. It works fine when placeholder is added though.


HCA Healthcare
US
@VigneshK17287711 To set a default value for a dropdown in the "Status" column of a table in Pega Constellation, you can use a Data Transform. Start by identifying the property linked to the "Status" column and create a Data Transform to initialize it with the desired default value (e.g., .Status = "DefaultValue"
). Ensure the table's "Status" column is bound to this property. When a new row is added, trigger the Data Transform to set the default value by configuring the "Add Row" action to call a flow action or activity that runs the Data Transform. The dropdown should be sourced from a Data Page or Local List, and the default value must match one of the options in the list. This approach ensures the dropdown displays the default value whenever a new row is added. In Constellation, since there’s no direct default value option in the UI, initializing the value programmatically through the Data Transform is the recommended approach. If dynamic conditions are required, you can also use When conditions or UI events to update the value. Please let me know if you need any more details. thanks