Closed gurutto-manila closed 3 months ago
Hi @gurutto-manila
To solve this problem you can use this addon https://github.com/ihslimn/jet-form-builder-check-query-action https://prnt.sc/vrXwX3c3U-1w
The addon adds a new action "Check Query Results" https://prnt.sc/6f3RlInUG2sS
In the settings of the action, select the needed query, and set the error message (you can use JetFormBuilder macros in that input field). If you need the action to throw an error when the query has no items, keep the switcher disabled; if you need the reverse effect - throw an error if the query has items - enable it.
For example, we have a use case where we need to throw an error if a post with the same title already exists.
Our query is set up this way: https://prnt.sc/-0ca5ZpZmLDf
Now, if we try to submit a post with an existing name, the form will throw an error: https://prnt.sc/qJE4Mv9ATRJP
https://github.com/ihslimn/jet-form-builder-check-query-action/issues/1
i got this error
@Crocoblock
any suggestion for this? to prevent duplicate post title when submitting via form?