I’m setting up a customer module user submitted form and I want to pre populate the fields with those from the CRM for that user (who is a logged in member of a secure zone). I can’t quite see how to do that. It seems like a need a custom component for that user on the form page. I’ve tried {{this|json}} but I’m not seeing any logged in member details.
You can use the request.currentmember
object.
Docs here:
https://docs.treepl.co/liquid/request-object
eg:
{{request.currentmember.firstname}}
And in a form field:
<input type="text" value="{{request.currentmember.firstname}}">
By the way, the filter | json
is a BC thing. We don’t need that in Treepl as the output is already in JSON format.
1 Like
Thanks Adam - that makes things much clearer.