Problem:
I have a relation with post author and a custom field set. I can make every field required (I do not need to, but I can), except for the post author field.
As the client is testing it now an empty line appeared in the dropdown. I have no direct contact with the client so I can not ask him what happened, but I think making the field required could avoid empty lines in the future. Maybe I am thinking wrong, but now you can make a new order without selecting the author.
Solution:
How do you setup the post author field? is it a CRED generic field?
If it is, you can add argument "required" in the shortcode [cred_generic_field], for example:
[cred_generic_field type='select' ...] { "required":1, ... } [/cred_generic_field]
See screenshot https://cdn.toolset.com/wp-content/uploads/2018/01/604177-required.JPG
Relevant Documentation:
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 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9: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/Hong_Kong (GMT+08:00)
This topic contains 4 replies, has 2 voices.
Last updated by 6 years, 10 months ago.
Assisted by: Luo Yang.