CMS Development

tmcmillan99
Contributor | Platinum Partner
Contributor | Platinum Partner

Syntax issue grabbing form input value

Can someone tell me what I am doing wrong with the syntax below? I am trying to grab the value (email) from the input to use as a variable to pass as a url parameter.

    <div class="flex flex-col">
      <form id="form-member" method="GET">
        <label>Enter Member's Email:</label>
        <input name="member" type="text" class="col-span-2 p-4" />
      </form>
      {% set query = request.query_dict.get("member") %}
      {% set members = crm_objects("azimuth", "member_email=" + query, "sfcontact_id") %}
    </div>
    <div class="w-full mt-10">
      <a class="view-btn text-white uppercase" href="/dashboard?member_email={{ query }}&sf_id={{ member.sfcontact_id }}" target="_blank">View Dashboard</a>
    </div>

 

Thanks,

Terry McMillan

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Syntax issue grabbing form input value

Hi, @tmcmillan99! Thanks for the interesting question. Hey @mangelet @JBeatty @albertsg, can you provide any insight into how @tmcmillan99 can accomplish their goal?

 

Thank you! 

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes