Set default option for a dropdown on the UI Builder

Hari1
Mega Sage

Hi,

I am not able to set a default option on the dropdown component in the UI Builder. I see a blank option as my first option. I need to set it to the 1st option by default when the page loads. Below is the snapshot.

Hari1_0-1713523537999.pngHari1_1-1713523567166.png

@Nootan BhatCan you please help?

1 ACCEPTED SOLUTION

Nootan Bhat
Kilo Sage

Hi,

You can set the Default value using the selected items configuration.

If you want to put Today as default value you can update the Selected items configuration as: ["today"] pass the choice id in the array.

NootanBhat_0-1714636614464.png

NootanBhat_1-1714636639579.png

 

 

Please mark my answer as correct if it helped you.

 

Thanks

Nootan

View solution in original post

2 REPLIES 2

Nootan Bhat
Kilo Sage

Hi,

You can set the Default value using the selected items configuration.

If you want to put Today as default value you can update the Selected items configuration as: ["today"] pass the choice id in the array.

NootanBhat_0-1714636614464.png

NootanBhat_1-1714636639579.png

 

 

Please mark my answer as correct if it helped you.

 

Thanks

Nootan

Thanks @Nootan Bhat . It is working.

I do have another question, I am using the Data Visualization component in the UI Builder where i don't want to use Group By or Set Group By to --None--
I want the Data Visualization component to show the data as per the below report on the UI Builder.

Hari1_1-1714637518735.png

What i see on the UI Builder Data Visualization component

Hari1_2-1714637626758.png

I have not set anything for the Group By

Hari1_3-1714637679342.png

Can you please help me on this?