How to access parameters passed to Arcade Script?
As the documentation for workflow 5 is not very detailed lacking solid information I am struggling to figure out how to access a parameter I have set.
I have set a parameter as follows,
={"startDate" : $formCreatePermit.state.datePickerStartDate.value.value}
how do I access the parameter "startDate" in the script part of the Arcade Script?
Regards
Marco Giana
-
Hello Marco,
I believe that Amanda's answer here would match your use case:
Thanks, Stefan
0 -
In Arcade you use a "$" prefix to reference variables that are passed into the script. So you'd use $startDate in your case.
0 -
Thanks Stefan and Ryan Amanda's answer does indeed answer my question, I just did not see the "more" link to reveal the script part of her answer. It would be beneficial if that sort of example would be in the documentation.
0 -
I am unable to view Amanda answer above. I got a 404 error. Can I see her answer? Thank you.
1 -
I'd also love to see Amanda's answer
0 -
You need to use a parameter name in lower case as shown below.
={"startdate" : $formCreatePermit.state.datePickerStartDate.value.value}
and then access it from the script with $startdate0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare