Security for iFrame Embed Widget with Embed Web page

  • AgilityAssoc.Canada
    Asked on July 17, 2018 at 9:05 AM

    Hi,

    1.) If I were to use iFrame Embed widget with a a web-page created with embedded JotForm code, would it have the https security provided by JotForm. The server where I would embed the form code has no https option. The reason for embedding code is for custom editing.

    2.) I understand it is not currently possible to copy fields values from embedded page to form page with iFrame widget.  Is it possible to have the PayPal section and submit on the page with the widget? Or will the fields on the form section inside the iFrame not be included with the submission?

    3.) Would using an iFrame inside a text field be more successful?

    Regards, Robert  

  • Kevin Support Team Lead
    Replied on July 17, 2018 at 11:13 AM

    1) The iFrame Embed widget will require a link, this means that the security protocol of the form will not change the security in the link you provide for the iFrame, I mean, the form is loaded under HTTPS, but your link may be under HTTP although this would generate a conflict due to mixed content, HTTPS and HTTP in a same page. 

    2) The fields inside the iFrame Embed widget will not be included in the submission, actually the purpose of the widget is to display content only, but it does not have any inputs. Also, it's not possible to pass data from fields in the form to elements inside the iFrame, this seems to be possible with some JavaScript code; however, you will need to embed your form using the source code since JS is not allowed on JotForm, here is an example about handling elements in an iFrame: https://www.w3schools.com/howto/howto_js_element_iframe.asp 

    3) Using a text element will work basically the same as the iFrame Embed widget. 


  • AgilityAssoc.Canada
    Replied on July 18, 2018 at 9:05 AM

    Hi,

    Thank you for confirming what I already thought might be the case. So I will not be trying this method. 

     

    Best Robert

  • Kevin Support Team Lead
    Replied on July 18, 2018 at 11:14 AM

    I have been testing on my end and I cannot find a way to limit the number of characters in the Spreadsheet to Form widget, using different elements you may set up an input mask, but it's not actually possible to trigger a condition to show elements based on the length of the string in the field. 

    You may need to implement your own script in order to achieve this, but it would require to have the source code of the form. 

    We may also escalate this as feature request to our second level, please let us know. 

  • AgilityAssoc.Canada
    Replied on July 21, 2018 at 3:18 PM

    Hi,

    Well why not, let us escalate. Probable will never come to pass.  I think a very similar request was escalated. It is a shame that the widgets developed by the JF team are stand alone like others. Personally I think the JF widget developers should make them work with the other form fields and make them more powerful.

    Best, Robert 

  • Victoria_K
    Replied on July 21, 2018 at 5:20 PM

    Hello Robert,

    Unfortunately, I am not sure if I can understand the topic of this thread in full upon jumping in, but from our mail logs, it seems that you need to somehow check the input for Spreadsheet to Form widget and to show a custom warning message if it is not correct.

    I can suggest to use a short text entry or another plain text field to check the amount of characters inputted. Then you can forward the correct value to Spreadsheet to From widget for further processing.

    Since it is only possible to populate an iframe widget with a Page Break between the field and widget, you will have to add one. Also, it would work when forwarding a value using URL parameters (from one form to another). The main idea is to load an iframed widget already pre-populated. 

    So, I can suggest the following workaround:

    - Short Text Entry field to capture user's input;

    - Substring widget to count characters;

    - Conditional statement to show the warning and hide the Next button if input is not correct:

    1532207300screenshot9zigg Screenshot 10

    1532207316screenshots5bxg Screenshot 21

    - Spreadsheet to Form is populated with the following condition:

    1532207362screenshotq5ilg Screenshot 32

    Here is how it works:

    1532207484screencast55 Screenshot 43

    Unnecessary fields could be hidden from form respondents.

    I suppose a hover message could also be possible, please let us know if you need one. 

    https://form.jotform.com/82016845223957 

    Is this something you were looking for?