Sauter la navigation

[Remonté au deuxième échelon] Form default field value error

This support ticket is created Il y a 3 années et 2 mois. 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par leilaG Il y a 3 années et 2 mois.

Assisté par: Shane.

Auteur
Publications
#2276367

Hi when building a form in Normal mode and selecting 'Required field' the 'Default field value' displays as '1' on the front end form but there is nothing entered in the 'Default field value'
If you switch to Expert mode it shows the '1' in the code, but we want to keep the form in normal mode.

lien caché
lien caché

#2276389

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Hi there

I assume you are talking about adding a generic field to the form (Types fields inherit their required setting from Types).

I see the same problem on my local test site: not setting a default adds a default of 1 if the field is required.

Having confirmed the problem I've escalated it to the developers and will update you when I have some feedback to share.

If you don't want to use the Expert mode editor, the only other workaround I can see is to use a blank space for the default value.

#2276397

Thanks I'll wait to hear back and will use the blank space for now.