I have a parcel layer, with official parcel ID numbers from a county assessor. I would like to create a direct link to the assessor's parcel information page inside the popup in ArcGIS Online using the ID attribute. I have done this successfully with sites that use attributes in the URL query string, using the GET method, but now I'm working with a county site that submits data from a form using a POST request.
I have successfully reproduced the Form in HTML, and it works when I type a Parcel ID number in the text box and click the Submit button. I'm having no luck getting the Parcel ID from the parcel attribute to properly substitute into the form data.
Here is the relevant HTML in the popup:
<form action='http://somesite/index.php' method='post'>
<input type='text' name='searchTerm' value='{ACCNO}'>
<input type='submit' value='Assessor Info'>
</form>
I want the attribute {ACCNO} to substitute itself for the field value for that parcel, so that the data submitted from the form looks like:
searchTerm=123456789
But what actually gets submitted from the popup window is this string:
The external web server doesn't like all of that markup. Is there a way to send attribute values in POST data without adding that extra <span> markup?
Message was edited by: Justin Johnson to properly display the unrendered html