Jump to content
  • 0

Set Virtual dropdown field to blank on window load


anibaldps

Question

I have a Virtual field which is a cascading dropdown field in a details page. I would like to set the value to NULL when the page loads. I have the following code that is NOT working for me.

<SCRIPT>

function block()
{
document.getElementById("cbParamVirtual1").value="";
}

window.onload=block;
</SCRIPT>

Can anybody please help me with this, what is wrong with this code?

Sincerelly,

Anibal

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

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
Answer this question...

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