Solved

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

Posted on 2011-09-13
9
187 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
Comment Utility
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
Comment Utility
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
Comment Utility
so you want to create another form when the option yes is selected?
0
 
LVL 4

Author Comment

by:terminateall
Comment Utility
Thats right...
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 4

Author Comment

by:terminateall
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you i'll check it out and let you know.
0
 
LVL 4

Accepted Solution

by:
terminateall earned 0 total points
Comment Utility
I got it done by using Onchange Event Jscript


Thank you

0
 
LVL 4

Author Closing Comment

by:terminateall
Comment Utility
I found the solution on my own.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

11 Experts available now in Live!

Get 1:1 Help Now