Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

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.
0
terminateall
Asked:
terminateall
  • 6
  • 3
1 Solution
 
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
 
Gurvinder Pal SinghCommented:
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!

 
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 got it done by using Onchange Event Jscript


Thank you

0
 
terminateallAuthor Commented:
I found the solution on my own.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now