Problem: When I submit a CRED form I'm redirected to a 404 page. I also see a notices on my CRED form:
Notice: Undefined index: required in /path/to/wp-content/plugins/cred-frontend-editor/application/models/field/generic.php on line 62 Notice: Undefined index: required in /path/to/wp-content/plugins/cred-frontend-editor/application/models/field/generic.php on line 63
Solution: Add the required attribute to all generic fields in this CRED form, and set it to 0 if the field is not required.
[cred_generic_field field='wpcf-company-size' type='select' class='form-control' output='bootstrap' urlparam=''] { "required":0, "validate_format":0, "persist":1, "default":["1-10"], "options":[ {"value":"1-10","label":"Employees: 1-10"}, {"value":"11-50","label":"Employees: 11-50"}, {"value":"51-200","label":"Employees: 51-200"}, {"value":"201-500","label":"Employees: 201-500"}, {"value":"501-1000","label":"Employees: 501-1000"}, {"value":"1001-5000","label":"Employees: 1001-5000"}, {"value":"5001-10,000","label":"Employees: 5001-10,000"}, {"value":"10,001+","label":"Employees: 10,001+"} ] } [/cred_generic_field]
Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_generic_field
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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
Dieses Thema enthält 4 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 6 Jahren, 9 Monaten.
Assistiert von: Christian Cox.