Web AppBuilder widget to submit a form post?

266
0
02-03-2023 01:45 PM
davedoesgis
Occasional Contributor III

I have a 3rd party website that I'd like to link to from my Web AppBuilder app. This website accepts form post submissions, and one of the required form fields is a polygon formatted as JSON text. It's remarkably simple to do in HTML, but I'm not sure how I'd add this to my Web AppBuilder app without creating a custom widget. Right now, this is deployed to ArcGIS Online, with no Portal or web servers from our organization, so I believe I am limited to the default widgets. Is there anything that could do something like this? 

I'm willing to get creative to work around how the input features are collected. Right now, the users mostly sketch polygons with their mouse, but we could use selected features or something else, as needed. 

Here is a working form from a basic HTML web page: 

<form name="SUBMIT_Form" target="_blank" method="post" action="<URL>">
   <input type="hidden" name="location.footprint"
       value="{&quot;type&quot;:&quot;Polygon&quot;,&quot;coordinates&quot;:[[[-75.347475,38.908866],[-75.341467,38.912406],[-75.331940,38.915344],[-75.324215,38.910937],[-75.323872,38.899382],[-75.337691,38.886422],[-75.352110,38.888493],[-75.356573,38.901185],[-75.347475,38.908866]]]}">
    <input type="hidden" name="requestor" value="<our_app_URL>">
    <input type="hidden" name="destination" value="resources">
    <input type="hidden" name="project.name" value="">
    <input type="submit" value="Open Report" />
</form>

 

0 Kudos
0 Replies