Solved

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

Posted on 2011-09-13
9
192 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:terminateall
  • 6
  • 3
9 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36528462
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
 
LVL 4

Author Comment

by:terminateall
ID: 36528497
I dont want to hide the existing form but, want to have a new form of different entity open when user selects yes.
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36528505
so you want to create another form when the option yes is selected?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Author Comment

by:terminateall
ID: 36528518
Thats right...
0
 
LVL 4

Author Comment

by:terminateall
ID: 36528527
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
 
LVL 40

Expert Comment

by:gurvinder372
ID: 36528555
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
 
LVL 4

Author Comment

by:terminateall
ID: 36528612
Thank you i'll check it out and let you know.
0
 
LVL 4

Accepted Solution

by:
terminateall earned 0 total points
ID: 36553841
I got it done by using Onchange Event Jscript


Thank you

0
 
LVL 4

Author Closing Comment

by:terminateall
ID: 36578986
I found the solution on my own.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question