1,783 views | View blog reactions

JScript1

Posted on December 18th, 2006 in JSCRIPT by Seidl Michael | 1,783 views

Here are some JScript Examples for the beginning.

Here you can see some examples to format the WebForm. Here you can see how to change the background collor and the font color.

JAVASCRIPT [Show Plain Code]:
  1. crmForm.all.address1_country.style.backgroundColor = "#FFFFFF";
  2. crmForm.all.address1_country.style.color = "#000000";


The Field “MyContact2″ is a DropDown Field with Options “Yes” and “No”, hee you can see, how to get a DropDown Field colored.

JAVASCRIPT [Show Plain Code]:
  1. var list = crmForm.all.new_mycontact2;
  2. var optionyes = list.options[0];
  3. var optionno = list.options[1];
  4. optionyes.style.backgroundColor = "#8FFE89";
  5. optionyes.style.color = "#000000";
  6. optionno.style.backgroundColor = "#FE6F6E";
  7. optionno.style.color = "#000000";