locked
Add attribute at runtime on crm form RRS feed

  • Question

  • Hi friends ,


                There is a requirement to add a attribute at runtime on crm form, is this possible ?

    if possible please let me know, how this can be achieved 

    Thanks in Advance 

    Regards,
    Kumar

    kumar
    Sunday, August 16, 2009 7:26 AM

Answers

  • Hi, Kumar.

    This can be done but easier way - is to add those attribute permanently and depends on your conditions - show it or hide.

    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Sunday, August 16, 2009 8:21 AM
    Moderator
  • crmForm.all.name_c.style.visibility = 'hidden';
    crmForm.all.name_d.style.visibility = 'hidden';

    Ofcourse modify the name_c and name_d to the correct fieldname_c and fieldname_d.
    Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1
    Sunday, August 16, 2009 9:14 AM

All replies

  • Hi, Kumar.

    This can be done but easier way - is to add those attribute permanently and depends on your conditions - show it or hide.

    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Sunday, August 16, 2009 8:21 AM
    Moderator
  • crmForm.all.name_c.style.visibility = 'hidden';
    crmForm.all.name_d.style.visibility = 'hidden';

    Ofcourse modify the name_c and name_d to the correct fieldname_c and fieldname_d.
    Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1
    Sunday, August 16, 2009 9:14 AM
  • clone the two fields can add another field. :D
    韓建興 http://jamson.cnblogs.com
    Sunday, August 16, 2009 1:06 PM