Problem: I added password and repeat password fields to my CRED edit User form, but I would like for them to be optional.
Solution: There are two workarounds for this issue now:
1. Add a generic checkbox field and use a CRED conditional to show or hide both password fields based on the checkbox status.
2. Use two generic fields instead of the standard CRED fields for password and repeat password. Use the same field names, but make them optional:
[cred_generic_field field='user_pass' type='textfield' class='' urlparam=''] { "required":0, "validate_format":0, "default":"" } [/cred_generic_field] [cred_generic_field field='user_pass2' type='textfield' class='' urlparam=''] { "required":0, "validate_format":0, "default":"" } [/cred_generic_field]
Relevant Documentation: https://toolset.com/documentation/user-guides/cred-user-forms/
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 |
---|---|---|---|---|---|---|
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)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 10 months ago.
Assisted by: Christian Cox.