Question

Photo of Dillan Cagnetta

0

Prepopulate Form input Fields when user is Logged in

Hi all

How can i prepopulate input fields on a form when the user is already logged in.

e.g. IF user is logged in : the contact us form should have First Name etc populated

Thanks

  • Photo of Matthew Meekins

    0

    Hey Dillan. I assume you're working in a workflow that you've already created. This is the way I do it, but there may be a better way.

    Create an activity at the top of your workflow that is activated with the workflow. Then the action type you need is "Set Attribute Value". Then you use a Lava tag that sets the text of that to the value of the current person. You have to do this for each attribute that you want filled in. 

    I'm not sure if that was clear so I added a screen shot :). Let me know if this doesn't answer your question. 

    Screen Shot 2015-06-18 at 11.00.49 AM.png

    • Dillan Cagnetta

      Hi Matthew...yes but how would i test if the person is logged in already or not. If theyre logged in your method would work but not if they are not logged in