Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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