Validation rule - Validate against a connected field using a pipe
In this example, we are creating a validation rule with a pipe to prevent users from using more credits than they have available.
Step 1
Follow the steps in the image below to create a new pipe with the following API call.
https://api.tadabase.io/api/v1/data-tables/TABLE_ID/records/{recordId}
Remember to change the Table ID in the call to the ID of the table you wish to use for your validation. You can find your table ID in the example below.
Step 2
In the parameter tab of your pipe. Set a parameter for record ID.
Step 3
Within the pipe's headers tab, add each of the following as a key. And then, fill the value with your API value.
X-Tadabase-App-id
X-Tadabase-App-Key
X-Tadabase-App-Secret
Step 4
In the pipe response tab, you will need to add the information from the field you wish to use for your validation. See the image below for where to find this information.
Step 5
Add the pipe to a validation rule within your form for purchases with this setup.
Original Community Post:
We'd love to hear your feedback.