On the classifieds site example, is there a way to create a Price field that is required in a numeric format when listing, but allow users to select "TBD" or "Not Specified" as an alternative to entering a numeric value? How would we set this up in both the Types fields and the associated CRED form? It should also work when a user is editing a listing, so they can revert to either "TBD" or "Not Specified" after having selected a numeric value previously
Hi there,
Thank you for contacting us and I'll be happy to assist.
The non-numeric values like "TBD" or "Not Specified" can't be added to a numeric price field, but you can add two new custom fields to allow admin/visitors to specify that the price information is not available.
1. You'll first add a new custom field "Price unavailable?" to your listings custom post type and set it to use "Checkbox" type.
2. Next, you'll add another custom field "Price Status" and set it to use select field type, with two options: "TBD" & "Not Specified".
3. After that, you can set this "Price Status" field to only show when "Price unavailable?" checkbox is checked.
( ref: https://toolset.com/documentation/user-guides/types-custom-fields-conditional-display/ )
4. Likewise, the numeric Price field, can be set to only show when "Price unavailable?" checkbox is unchecked.
Note: this conditional display will automatically carry forward to your front-end CRED forms too.
regards,
Waqar