Navigation überspringen

[Gelöst] Default vale in select field

This support ticket is created vor 3 Jahren, 3 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Puntorosso vor 3 Jahren, 2 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2281273

Hi, in the Cred form, when using

"persist":1 

for a select field, the last entry is always shown when refreshing the page.

How can I avoid this?

If I use

"default":""

it doesn't work.

The only way is to insert a space

"default":" "

but this space will not be seen by the next user, who will probably leave it as the first character of the new entry.
Adding an extra function to remove it seems a bit excessive.

Any ideas are welcome. Thank you

#2281575

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please try to add default value as given under:

"default":[""],

Does that helps?

#2283171

That works!
Thanks a lot Minesh.