TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Feed Back & Fire! > Feed Back

Multi-Select Checkbox Pick-List CRM 4.0

Feed Back

 
Reply
Thread Tools Display Modes
Unread 06-01-2011, 02:14 PM   #1
Newbie
Thread Starter
 
Join Date: Aug 2010
Posts: 3
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0 DIAMONDMCADORY is an unknown quantity at this point


Windows XP


Question Multi-Select Checkbox Pick-List CRM 4.0

Hey everyone, I am trying to create a Multi-Select Checkbox Pick-list within Microsoft Dynamics 4.0. I was able to create the checkbox using Jim Wangs Code from http://jianwang.blogspot.com/search/label/Picklist
I followed the directions, I am just not sure if i need to put the values that are in my picklist within this script and if so, I have no idea where. I am kind of a newbie to Java Script so I was not sure what fields needed to be changed (or what colors mean what). Also When i insert the script and put in my PL and PLV names; I am able to see the checkbox on my Account forum screen and the values, but when i hit save and close, It will not save. I put a picture at the bottom of an example of what it looks like. In my picklist the values i have are ( Value, Value1, Value2) did this because it was a test for me to figure out where everything went and if the values needed to be in the script. As you can see in the code I have not put in the picklist values, this may be causing the save error; I just have NO idea what to change and where to insert it. I have had no luck with anyone helping me with this. So any and all help would greatly be appreciated. Please help,

Diamond




Code:
var PL = crmForm.all.new_picklist;  
var PLV = crmForm.all.new_picklistvalue;  
 PL.style.display = "none";  
 PLV.style.display = "none";  
 var addDiv = document.createElement("<div style='overflow-y:auto; height:80px; border:1px #6699cc solid; background-color:#ffffff;' />");  
 PL.parentNode.appendChild(addDiv);  
 for( var i = 1; i < PL.options.length; i++ )  
 {  
   var pOption = PL.options[i];  
   if( !IsChecked( pOption.text ) )  
      var addInput = document.createElement("<input type='checkbox' style='border:none; width:25px; align:left;' />" );  
    var addLabel = document.createElement( "<label />");  
    addLabel.innerText = pOption.text;  
   var addBr = document.createElement( "br");
 
  PL.nextSibling.appendChild(addInput);  
  PL.nextSibling.appendChild(addLabel);  
  PL.nextSibling.appendChild(addBr);  
 }  
  function IsChecked( pText )  
  {  
    if(PLV.value != "")  
  {  
      var PLVT = PLV.value.split("||");  
      for( var i = 1; i < PLVT.length; i++ )  
      {  
         if( PLVT[i] == pText )  
            return true;  
         }  
    }  
        return false;  
 }  
 crmForm.attachEvent( "onsave" );  
 function OnSave()  
 {  
   PLV.value = "br";  
   var getInput = PL.nextSibling.getElementsByTagName("input");  
   for( var i = 1; i < getInput.length; i++ )  
   {  
      if( getInput[i].checked)  
     {  
       PLV.value += getInput[i].nextSibling.innerText + "||";  
     }  
   } 



Sponsored Links
DIAMONDMCADORY is offline   Reply With Quote
Thanked Users:
hallhall10 (03-05-2013)
Unread 18-11-2011, 07:46 PM   #2
Cmalone_vsu
Guest
 
Posts: n/a
Cool Re: Multi-Select Checkbox Pick-List CRM 4.0

Sponsored Links
Were you able to figure this out? I am unable to save the data.

Sponsored Links
  Reply With Quote
Reply

Tags
attribute, checkbox, crm, help me, java

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locked subject bar, need to add pick list? DIAMONDMCADORY Microsoft Dynamics CRM 0 17-08-2010 04:04 PM
Multi-Select PickList milonedp Microsoft Dynamics CRM 2 26-04-2008 05:28 PM
Microsoft Word Userform - multi-select list box ShakeandBake Microsoft Office 1 16-04-2008 05:20 PM
How do I select text with the same style (style checkbox in xp03) glo Microsoft Office Word 1 14-02-2008 03:12 PM
RE: Multi-select Listbox PatrickH Microsoft Dynamics CRM 0 11-01-2008 05:31 AM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 08:01 PM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional