Jump to content

Submit Button and Redirects AND iFrames


Recommended Posts

This is something different.

 I use a Virtual Field (Virtual9) and a Calculated Value on this workflow. Virtual9 is hooked up to the Destination field on exit.

CASE

/* Account NOT in System*/
WHEN [@cbParamVirtual13] = 1 THEN 
'https://www.mydietmadereal.com/[@app:sysRelease2]'

/* Account is NEW */
WHEN [@cbParamVirtual13] = 2 THEN 
'https://www.mydietmadereal.com/mdmr/AddProfile[@app:sysRelease2]'

/*  Account is ACTIVE  */
WHEN ([@cbParamVirtual13] = 3) OR ([@cbParamVirtual13] = 4) THEN  
'https://www.mydietmadereal.com/mdmr/MyDashboard[@app:sysRelease2]'

/* Account Has Been SUSPENDED */
WHEN ([@cbParamVirtual13] = 101) OR ([@cbParamVirtual13] = 102) THEN 
'https://www.mydietmadereal.com/contact-8/[@app:sysRelease2]'

ELSE ''

END

THE PROBLEM

When I deploy the data page, it works like a charm, EXCEPT because WIX (my Web host is iFrame based) will not let me open a URL link out of an embedded HTML piece of code and the new page opens in the existing data page container. 

image.thumb.png.721a9f96cd31d68b75fc8dff2ee067fb.png

In the past, I have opened new web pages using HTML  (<a href="https://www.mydietmadereal.com/mdmr/RecipeDetails[@app:sysRelease]RecipeID=[@field:RecipeID]" target="_top">Get the Recipe</a>) by adding a target.

Does anyone know how to add a "target="_top"" to the URL line so that Caspio will accept it?  I have tried everything I can think of.

Lynda

Link to comment
Share on other sites

  • 4 weeks later...

Hello @Lynda

On "Web Form Wizard - Configure Fields" page, you can add the following script:
 

<script>
window.open('[@cbParamVirtual9]',
  '_blank' 
)

</script>



image.png.6f41902d4359c3b18cb2394badab7bc8.png

Since it is an iframe,  "target="_top"" is blocked, but  "target="_blank"" should work and open the required URL in the new tab

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...