Skip Navigation

[Resolved] Creating a required CRED form field inserts default value of "1"

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)

This topic contains 2 replies, has 2 voices.

Last updated by Saul Baizman 1 year, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2562511
screenshot 2023-02-27 at 13.55.07.png
screenshot 2023-02-27 at 13.55.21.png

Hi there,

I've created a CRED User form. It includes a single line input field (generic field). I've marked the field as required (see screenshot). When loading the form on the front-end, a "1" appears in the field (see screenshot). In the advanced mode of the form editor, I can see the issue:

[cred_generic_field type='textfield' field='profession']
{
"required":1,
"default":"1"
}
[/cred_generic_field]

For whatever reason, the "default" property is set to "1." The only way to fix this is to switch to advanced mode, which I would prefer to avoid, if possible.

Thanks.

Saul

#2563113

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

This is a known issue to us and as the workaround is easy I suggest you should just delete the 1 added to default attribute from the expert mode.

The fix will be shipped with the future release but there is no ETA on it.

#2563117

My issue is resolved now. Thank you!