Solved

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

Posted on 2011-09-13
9
188 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
 
LVL 4

Author Comment

by:terminateall
ID: 36528518
Thats right...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now