Hello,
I'm trying to fetch the content of a form field in an Automation.
I tried to use the following smart values with no success (it just returns an empty text)
{{issue.forms.last.reqbody}}, {{triggerissue.forms.last.reqbody}}, {{forms.last.reqbody}}
Any idea what I'm missing here?
Thanks,
Hi @Or Shaked -
@Vinubabu _Vinu_ recently wrote a great article on this topic that might help with this:
Hi @Or Shaked ,
As per official docs, you'll have to use Forms submitted trigger to access these smart values:
Only smart values on forms that use the form submitted trigger can be accessed.
If you'd then use {{forms.last.reqbody}} it will pull the data you entered in that text field.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So basically it means that i can retrieve forms info only right after the form has been sent?
Yep.
You could also get values at any other point (not necessarily as soon as it's submitted), but that's a bit 'trickier' part as you need to get Form IDs via console or REST API first, as described here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.