locked
Style of disable fields RRS feed

  • Question

  • Please Help me, I need your help.

    I have many piclist, bit and texfarea fields . Some of them  seems like disable I want to change the style of these disable fields like enable fields.
    User can see these fields like enable but nobody change the value of these fields. How can ı do this?
    Friday, September 4, 2009 2:08 PM

Answers

  • Hi,

    you van do this with java script in the onload event of the form.
    Examples:
     

    // change the font of a label
    crmForm.all.<your_field>_c.style.fontFamily = 'Forte';
    // change the font size
    crmForm.all.<your_field>_c.style.fontSize = '16px';
    // HTML to change the label
    var field = crmForm.all.<your_field>_c; 

    field.innerHTML = "Auch <sup>hochgestellte</sup> Zeichen <strong>sind</strong> möglich";



    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
    • Marked as answer by erdogan uslu Monday, September 7, 2009 9:49 AM
    Monday, September 7, 2009 6:11 AM

All replies

  • Hi,

    you van do this with java script in the onload event of the form.
    Examples:
     

    // change the font of a label
    crmForm.all.<your_field>_c.style.fontFamily = 'Forte';
    // change the font size
    crmForm.all.<your_field>_c.style.fontSize = '16px';
    // HTML to change the label
    var field = crmForm.all.<your_field>_c; 

    field.innerHTML = "Auch <sup>hochgestellte</sup> Zeichen <strong>sind</strong> möglich";



    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
    • Marked as answer by erdogan uslu Monday, September 7, 2009 9:49 AM
    Monday, September 7, 2009 6:11 AM
  • Michael, Thank you very much
    Monday, September 7, 2009 9:50 AM