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

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

Avatar

Avatar
Give Back 3
Level 2
ravitejagundu
Level 2

Likes

13 likes

Total Posts

33 posts

Correct Reply

3 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 5
View profile

Avatar
Give Back 3
Level 2
ravitejagundu
Level 2

Likes

13 likes

Total Posts

33 posts

Correct Reply

3 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 5
View profile
ravitejagundu
Level 2

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)

Avatar

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

128 likes

Total Posts

140 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Contributor
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
kapilKochar
MVP

Likes

128 likes

Total Posts

140 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Contributor
Give Back 10
Give Back 5
Give Back 3
View profile
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)