OK so…next trick. In CCS I create a shortcode, define some variable names, then run a gravity forms shortcode from within the CCS shortcode. In the gravity form I use the parameters like [get planname] to populate a field in gravityforms. Works like a charm, and lets you pass data into the gravity form. I’m able to recreate the logic in L&L but when I invoke it doesn’t pass any of the data… Here’s what it currently looks like…
<Loop type=user id=current>
<If user_field=real_estate_package_id><Set isagent>1</Set>
</If>
</Loop>
<Set homeplanid><Url query=homeplanid /></Set>
<Set homesiteid><Url query=homesiteid /></Set>
<Loop type=property>
<If field=id value="{Get name=homeplanid /}">
<Set planname><Field title /></Set>
</If>
</Loop>
<Loop type=property>
<If field=id value="{Get name=homesiteid /}">
<Set sitename><Field title /></Set>
</If>
</Loop>
<Note>Test code - these all show correct values.</Note>
<Get name=planname />|<Get name=homeplanid /><br>
<Get name=sitename />|<Get name=homesiteid /><br>
<Note>End test code</Note>
<Shortcode>
[gravityform id=43 title=false]
</Shortcode>
<Note>
***ORIGINAL CSS CODE***
[pass global=query fields=homeplanid,homesiteid,sitename,planname,isagent]
[if user_field=real_estate_author_agent_id compare="exists"]
[set isagent]1[/set]
[/if]
[loop type=property]
[if field=id compare="=" value={HOMEPLANID}]
[set planname][field title][/set]
[/if]
[if field=id compare="=" value={HOMESITEID}]
[set sitename][field title][/set]
[/if]
[/loop]
[gravityform id=43 title=false]
[/pass]
</Note>