Skip Navigation

[Resolved] Default vale in select field

This support ticket is created 2 years, 2 months ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 2 replies, has 2 voices.

Last updated by Puntorosso 2 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#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
Supporter

Languages: English (English )

Timezone: 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.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.