Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to make a value default in form's dropdown field?

ravitejagundu
Level 3
Level 3

Hi All,

Please help me in finding the way like, how to set a default value for a field in form's dropdown? Do we need to change in Schema or the form?

For example, in the below image the "Campaign Type" field is having two values created in enumerations as "Referral Campaign" and "Social Media Campaign". How to make the default value for the field as "Referral Campaign"? Till now it is storing as "None Specified" only.

1826248_pastedImage_0.png

Thanks,

Raviteja.

1 Accepted Solution
kapilKochar
Correct answer by
Community Advisor
Community Advisor

Hi Raviteja,

To set default value in dropdown of a form you need to set the same at Schema level.

<enumeration  default ="{valuetoset}" name="" >

<value/>

</eneumeration>

I hope this helps !

Thanks,

Kapil

View solution in original post

1 Reply
kapilKochar
Correct answer by
Community Advisor
Community Advisor

Hi Raviteja,

To set default value in dropdown of a form you need to set the same at Schema level.

<enumeration  default ="{valuetoset}" name="" >

<value/>

</eneumeration>

I hope this helps !

Thanks,

Kapil

View solution in original post