Hey, I want to create an Action in which at least 1 out of 2 (either one or both) fields should be required. How do I set it up? I have searched the forum but am not finding any way to achieve this combination.
However, if you only want some logic and both fields aren’t necessarily required, i often see people put helpText to communicate to the end user that one of the fields must be filled out. Then in your code, validate that rule.. if neither field was filled out you can throw an error alerting the zapier user. https://platform.zapier.com/cli_docs/docs#zerrors
Hey @masterAkayMOE! Are you looking to do this with an app you’re adding to the developer platform or within a Zap you’re building? If the ladder, generally, the best way to implement conditions like these would be to use a Filter step or a Path:
However, if you only want some logic and both fields aren’t necessarily required, i often see people put helpText to communicate to the end user that one of the fields must be filled out. Then in your code, validate that rule.. if neither field was filled out you can throw an error alerting the zapier user. https://platform.zapier.com/cli_docs/docs#zerrors
@GetUWired is correct here. There’s nothing in the platform build for exactly this situation. Most people address it with clear help text. If the user leaves them both blank, your API should, of course, return an error and that will be passed on to the user. We have more documentation on error handling here.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More about cookies
Customize which cookies to allow
Marketing cookies
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Social media cookies
label
These cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.
Analytics/performance cookies
These cookies enable the website to provide enhanced functionality and personalization, and allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. These cookies may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly and we will not know how you are using our site.
Functional cookies
label
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
Essential cookies
Always active
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.