Jump to content

Automatic Datapage Opening Based On Conditional Rule


Recommended Posts

I have multiple fields that I am trying to put a conditional rule, if met will trigger the opening of a Datapage as an action within the rules of Caspio. The fields have numeric values, if a certain value is selected from any of the fields dropdown list, for example 1, then the action should be an automatic popup of a submit or update Datapage for the user to complete. I am looking for a script that would accomplish this task.

 

Thanks

 

Lucas

 

Link to comment
Share on other sites

  • 4 months later...

Hello Lucas!

 

I hope your question is still actual. 

 

Here is a script which might help you to accomplish this task : 

<SCRIPT LANGUAGE="JavaScript">

 function myFunction()
 {
   var dropdown = document.getElementById("InsertRecordYour_Dropdown").value;
   
  if (dropdown =="1") {
        newwindow=window.open("http://Your_Submission_Form.html","mywindow", "menubar=1,resizable=1,width=500,height=500");
    }
 

}


document.getElementById("InsertRecordYour_Dropdown").onchange = myFunction;


</SCRIPT>

Have a good day  ;)

 

Aurora

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...