HTML in Card providing Query Condition

430
0
12-08-2020 05:16 AM
IandeNeeve1
New Contributor III

I want to use an element from the HTML in a text card in my Hub site to pass information into a form, which is a link destination.

IandeNeeve1_0-1607432375888.png This card is on a page in my hub site. It links to both an app (right button) and a survey123 form. The form guides a user in selecting a paper map of one of the Council Districts in our community. The first question in the form conditions the group of questions that will open, based on the District number for which the requester wants a map. So, if the user wants a map of District One, the Group of questions for District One opens up, and the Submit sends a quote to both the requester and GIS staff, indicating that someone has requested a map for District One (not 2 or 3, etc.).

My QUESTION IS: Can the form button on the card be configured so that, if a user clicks on a card titled "District One", the html parameter for "card name" passes into the form as the response to the first question (What District do you want to see? : "District One"), and thereby opens only the group of questions related to District One?

 

The HTML:

<div class="col-xs-12 col-sm-12 col-md-12">
<div class="calcite-web">
<div class="card-base">
<div class="card-image-wrap">
<img alt="Council Dist 1" class="card-image" src="https://bcscgis.maps.arcgis.com/sharing/rest/content/items/9cafd9a7c3264bf585f2e521ea4e70f0/data">
<div class="card-image-caption">Map Request Form</div>
</div>
<div class="card-content">
<h4>Beaufort County Council</h4>
<p>Districts 1 through 11&nbsp;&nbsp;</p>
<div aria-label="actions" class="btn-group btn-group-justified" role="group">
<a class="btn btn-default btn-xs" href="https://arcg.is/C5Oz5">Form</a><a class="btn btn-primary btn-xs" href="https://gis.beaufortcountysc.gov/voterregistration">App</a></div></div></div></div></div>

0 Kudos
0 Replies