Jump to content

Disable Cascading Dropdown when window loads


Recommended Posts

Here is the code :wink: :wink: :wink:

var first = true;

document.getElementsByName('InsertRecordaddress_Text')[0].onchange = dis;

function dis()

{

if (first)

{

document.getElementsByName('Element Name')[0].disabled = true;

first = false;

}

else

{

document.getElementsByName('Element Name')[0].disabled = false;

}

}

You need to insert it in the HTML block, below the cascading dropdown. and also replace Element Name with your valid cascading dropdown field name.

I have tried this code in firefox and chrome and it is just working fine.

Link to comment
Share on other sites

  • 6 years later...

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