Jump to content

Add Link Next To Dropdown


Recommended Posts

Hi!

 

I would like to ask for some help. :) Thanks in advance.

 

My problem here is, I actually want to open other data page to add new data to a dropdown on my form. I've read this (http://howto.caspio.com/tech-tips-and-articles/advanced-customizations/add-an-option-to-a-public-facing-dropdown/).

It's actually working. What I want now is send a parameter together with the URL. I've used javascript actually, however, it's not working. 

 

On my footer:

<script type="text/javascript">
var PARAM;
var URL1;
  function popup(){
	PARAM= document.getElementsByName("InsertRecordCASCADINGFIELD")[0].value;
	URL1 = 'URLHERE' + PARAM;
	window.open(URL1,'popup','width=500,height=300,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
	return false;
  }
document.getElementById("IDHERE").onclick = popup;
</script>

On the HTML Block next to the dropdown:

<a id="IDHERE">LINK</a>

It's not working, even though I've tried this one on a normal .html and works.

 

Whenever I click it, new window is not opening. (That's the problem, actually)

Edited by Joenn
Link to comment
Share on other sites

 

I've read that. What I want to send parameter to the new datapage which cannot be done without using HTML.JS(Not sure if not).

 

I've tried alot of things. It's working now actually. Thanks. :)

 

(I'm posted the thread since I've been working on this for the whole day and somehow, it's working now after changing a bit of the code)

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