How to Add a Jscript to open a new form when user selects option set "yes"

Hi All,

I am currently using MS CRM 2011 Online. I have a form called formA on which i have option set yes or no. I want to add Jscript or any other script which will open a another form called formB when user selects option "yes".

Currently this is my test ORG and i will implement the same in my ON-premise ORG.

Thanks in Advance.
LVL 4
terminateallAsked:
Who is Participating?
 
terminateallConnect With a Mentor Author Commented:
I got it done by using Onchange Event Jscript


Thank you

0
 
Gurvinder Pal SinghCommented:
Just hide the form, unless the user selects yes.
On the change event of the select,  if the 'yes' option is selected show the form or else hide the form

document.getElementById("formId1").style.display= "none"; //to hide it

document.getElementById("formId1").style.display= "block"; //to show it
0
 
terminateallAuthor Commented:
I dont want to hide the existing form but, want to have a new form of different entity open when user selects yes.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Gurvinder Pal SinghCommented:
so you want to create another form when the option yes is selected?
0
 
terminateallAuthor Commented:
Thats right...
0
 
terminateallAuthor Commented:
Let me explain again....

For Example i have an entity named as Account and there are two option set on the account form "yes" and "no"
NOw if i select yes on the account form, it should open up another form of another entity (let say contact)

Thanks,
Nadeem.
0
 
Gurvinder Pal SinghCommented:
You can leave a place holder (an empty div) where you will fill the form html at the selection of 'Yes' option
<div id="formContainer"></div>

document.getElementById("formContainer").innerHTML = "<form></form>";
0
 
terminateallAuthor Commented:
Thank you i'll check it out and let you know.
0
 
terminateallAuthor Commented:
I found the solution on my own.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.