Skip Navigation

[Closed] URGENT: Form stops working after adding required:1 to fields

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

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 7 replies, has 2 voices.

Last updated by Minesh 2 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2475995

I updated a Post Form to make the fields required. But now some fields are not shown anymore, whatever I try I get strange results. E.g. one field is not shown, if I add another - almost the same - field, only one is shown. Adding or removing required options makes whole fields show up or hide altogether.

Please help asap!

URL where the problem occurs: hidden link

#2476067

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

The access details you shared is for frontend so I'm not able to access the wp-admin. Could you please share admin access details as well.

In addition to that with the access details you shared for frontend I can see the form has two fields. I'm not sure which field you said is missing. Would you mind to create a video/screen-recording and share that clearly shows the issue and I'm happy to review it.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2476147

Hi Minesh,

Sorry about that. I have now made that user an admin.

If you go to the backend of the form, you'll see more than two fields.

#2476175

Minesh
Supporter

Languages: English (English )

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

Could you please check now: hidden link

The issue was you have added the "validate_format":1 to the [cred_field] shortcode and there is no such attribute you can pass.

You can pass such attributes to generic CRED form field as you can see with the following example but not to the [cred_field] shortcode:

[cred_generic_field type='select' field='@schoolklas-leerling.parent']
		{
			"options":[ [get_dagschema_schoolklassen_options] ]
		}
		[/cred_generic_field]
#2476227

Thanks for that! What I don't get now is how the fields are made mandatory. Is it the addition of

force_type='field'

?

#2476243

Minesh
Supporter

Languages: English (English )

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

Can you please clarify what exactly the field you want to make as required?

#2476369

All of them. But now three are required without the option 'required'.

For example:

[cred_field field='leerling-naam' force_type='field' class='form-control' output='bootstrap']

If I don't fill anything in, the form will not continue and give an error saying that the name should be filled in.

#2477489

Minesh
Supporter

Languages: English (English )

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

I mean what field you want to set as required and what as not required out of those three fields displayed on the form?

The topic ‘[Closed] URGENT: Form stops working after adding required:1 to fields’ is closed to new replies.