[Gelöst] checking both field not filled on post save
This support ticket is created vor 5 Jahre, 2 Monate. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
For example, to show a message that both fields should not be filled at the same time, you can add:
[cred_show_group if="( $(property-price-rental) ne '' ) AND ( $(property-price-sale) ne '' )" mode="fade"]
<p class="wpt-form-error">Both Sale and Rental Price is filled, remove one!</p>
[/cred_show_group]
Likewise, you can wrap your form's submit button, inside another conditional block, so that it only shows, when at least one of these two fields is empty:
A neater way of achieving that can be through a new custom field. This new custom field can be of type "radio" or "select" and can have two values to select from: "Sale" or "Rental".