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

ravitejagundu

03-09-2019

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.

Accepted Solutions (1)

Accepted Solutions (1)

kapilKochar

MVP

03-09-2019

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

Answers (0)