Jump to content

document.getElementById does not work help sought


Recommended Posts

Hi,

Trying to analyse values of 5 radio button(Virtual Fields) and update the value into a table.Strangely document.getElementById dosent work.

I tried document.getElementById with a single Virtual text field(document.getElementById("InsertRecordVirtual1").value). It din't work.

Tried accessing an existing Form element MentorName(document.getElementById("InsertRecordMentor Name").value). Even this didn't work.

Although the alert "comming" works all the time.

I should be doing some thing very silly for something so common to stop working.

Please help. I am BTW placing the code in footer


<SCRIPT LANGUAGE="JavaScript">

function trial()
{

alert("Comming");
alert(document.getElementById("InsertRecordMentor Name").value);
}



document.getElementById("caspioform").onsubmit=trial;

</SCRIPT>
Link to comment
Share on other sites

Thanks all.

Looks like I figured it out.

Virtual parameters are refered to using IDs starting with cbParam

getElementByID(cbParamVirtual1) worked. Great!

Found out a way to understand what names , Ids capio gives to form elements.

Before starting the code and after inserting the form elements, am deploying the page and seeing the souce code of the HTML deployed page. That way I get to know all these minor IDs and Names in advance. Now am getting hang of caspio Yupeee.

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

×
×
  • Create New...