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.

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

Screenshot for “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.

Text
https://api.tadabase.io/api/v1/data-tables/TABLE_ID/records/{recordId}
Screenshot for “Validation rule - Validate against a connected field using a pipe”
Screenshot for “Validation rule - Validate against a connected field using a pipe”

Step 2

In the parameter tab of your pipe. Set a parameter for record ID.

Screenshot for “Validation rule - Validate against a connected field using a pipe”

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
Screenshot for “Validation rule - Validate against a connected field using a pipe”

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.

Screenshot for “Validation rule - Validate against a connected field using a pipe”

Step 5

Add the pipe to a validation rule within your form for purchases with this setup.

Screenshot for “Validation rule - Validate against a connected field using a pipe”

Original Community Post:

Validation rule - Validate against a connected field using a pipe - Community Discussions / Pipes - Tadabase Community

Was this page helpful?

Something wrong or missing on this page? Tell us.