Select to view content in your preferred language

iFrame a S123 Form in HTML Page example

391
2
Jump to solution
11-27-2023 06:47 AM
kapalczynski
Frequent Contributor

Hello

I am trying to create a POC and have list of records from a JSON query on the left of a page.  Then have the Survey123 Form on the right populated with the appropriate data from that Record they selected on the left.

Right now I am just trying to get the form to show up in the right with a specific record ID and cant seem to make this work... 

Do I need to import some JS module or something? I figure if I can get this working I can figure out the rest...

<html>
<head></head>
 <body>
    <div style="width: 100%;">
        <div style="width: 50%; height: 80%; float: left; background: white;border-color:black"> 
            Left Div 
        </div>
        <div style="margin-left: 50%; height: 80%; background: white;border-color:black"> 
            <iframe name="survey123webform" width="300" height="400" frameborder="0" marginheight="0" marginwidth="0" title="My Survey" 
            src="//survey123.arcgis.com/share/1xxx14a98xxxc878005xxx6&amp;action=edit&amp;folder=inbox&amp;update=true&amp;q:where=OBJECTID=10343&amp;"></iframe>
        </div>
    </div>
 </body>
</html>

  

0 Kudos
1 Solution

Accepted Solutions
kapalczynski
Frequent Contributor

Think I got it with this..

My question now is can I back in credentials so I am not asked to login each time?

 

 

<iframe name="survey123webform" width=100% height=100% frameborder="0" marginheight="0" marginwidth="0" title="My Survey" 
            src="https://survey123.arcgis.com/share/xxxxxxxxx0545e6?portalUrl=https://gggg.fdfd.virginia.com/portal&mode=edit&globalId={5FA1DFAA-17C6-4052-89AD-4737B916157F}">
            </iframe>

 

View solution in original post

0 Kudos
2 Replies
kapalczynski
Frequent Contributor

Note:  My forms are in our OnPrem Portal So am thinking that I would have to change the URL?  Just not sure the correct syntax

0 Kudos
kapalczynski
Frequent Contributor

Think I got it with this..

My question now is can I back in credentials so I am not asked to login each time?

 

 

<iframe name="survey123webform" width=100% height=100% frameborder="0" marginheight="0" marginwidth="0" title="My Survey" 
            src="https://survey123.arcgis.com/share/xxxxxxxxx0545e6?portalUrl=https://gggg.fdfd.virginia.com/portal&mode=edit&globalId={5FA1DFAA-17C6-4052-89AD-4737B916157F}">
            </iframe>

 

0 Kudos