I set up a Jotform app to watch for submissions, and if the New Patient radio is marked YES, then the router is supposed to create a task in ClickUp. If NO, the scenario should end and do nothing.
I am not sure if the router is set up correctly to handle the YES/NO conditions, and I am having trouble getting the data mapped to Clickup; it keeps throwing an error. I am also unsure how to end the scenario if the answer is NO. Most of what I have seen says to force an error, which I am unsure how to do in the most elegant way.
Welcome to the Make community! Thanks for posting with the info you did, but we are missing the output bundle of the Jotform. Please, follow these steps when asking a question, and youâll be more likely to get a helpful answer:
Give us a detailed explanation of what youâre trying to achieve
Tell us about any steps youâve tried so far
Include screenshots of:
your scenario flow and setup (functions, mappings, variables, etc.)
module configurations and outputs
any error messages you are getting
Share the blueprint of the scenario you are asking a question about. (this does not contain any connection or personal information)
Most probably, the âIs this a new patientâ is a boolean value, as this is a radio button. That means that the value is not a string of âyesâ or ânoâ, but a boolean value of âtrueâ or âfalseâ. In the filter you should select a boolean filter. Again, this is probable but not definitive. I would need the output bundle of the Jotform.
For the Name error. What is the input bundle of the Clickup task? It might be possible that the value you mapped is empty.
The date error is most likely about the formatting of the date you are trying to pass for paramere âf1126âŚâ. Again, the input and output bundles would be usefull.
Below are the reasons for the errors you are facing and the way of stopping the scenario:
Most important, check the data type of field and values by hovering over the field and variable names. Data type of field and variable should be same whenever you are mapping in your workflows.
For example, below screenshot shows the date variable is âtextâ type.
And the next image shows the field is âdateâ type.
Hence, in this case, you need to wrap up the date variable (which is of text type) with parseDate() function.
To stop the scenario, you do not need a router. Instead, âIs this a new patient?â equal to âyesâ filter is enough. If the value will be no, then it wonât pass the filter and stop the execution.
Select the filter as âequal to (case insensitive)â as sometimes yes can be Yes or YES also.
First error for clickup module says âvalue missing for parameter nameâ. It means, patient name is empty from the form. To handle this, set a filter for âpatient name existâ also with âandâ operator.
Second error is for date. Invalid value possible reason is data type is not matched. Please refer to point 1 for this.
Regards, Msquare Automation - Gold Partner of Make