Solved

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

Posted on 2011-09-13
9
190 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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