• Resolved romagna41

    (@romagna41)


    I will like to use a HTML block to Iframe a page of another site (Subscrition forms).

    URL could will be like “https://www.cloud32.it/GES/pub/iscricorso/160609/499” that works.

    Last three digits (499 in this case) should change according to kind of subscrition before selected by customer.

    Using a Input field with Calculated field blocks and CONCATENATE formula I configured them in order to obtain a URL with final three digit variable according to customer selections.

    At this point I will like to transfer/past the URL obtained above in the HTML content block to display desired form.

    Could you please suggest something to solve this problem.

    Many thanks, best regrads.

    Carlo

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @romagna41

    Thank you very much for using our plugin. Assuming you assigned an id to the iframe tag (Ex. <iframe id="my-iframe"></iframe>) you can modify its URL from the equation in the calculated field that generates it.

    An hypothetic equation would be:

    (function(){
    jQuery('#my-iframe').attr('src', 'https://www.cloud32.it/GES/pub/iscricorso/160609/'+fieldname1);
    })()

    I assumes in the previous equation that fieldname1 contains the three digits code that identifies the external form.

    Best regards.

    Thread Starter romagna41

    (@romagna41)

    Great. works. Thanks

    An additional question, if you can support me, could you please suggest code to use in case i will switch to open a new windows in the browser instead to iframe the form?

    Have a nice day

    Carlo

    Plugin Author codepeople

    (@codepeople)

    Hello @romagna41

    If you want to open the URL in another tab or browser, you can edit the piece of code as follows:

    (function(){
    window.open('https://www.cloud32.it/GES/pub/iscricorso/160609/'+fieldname1, '_blank');
    })()

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML block. Insert a fieldvalue of another bolck’ is closed to new replies.