locked
MS dynamics CRM 2011 customization. RRS feed

  • Question

  • I’ve created 2 fields, one of them 2 option (yes/no) field and second regular text field. How I can Activate or deactivate my text field based on 2 option field answer.

     Thank you!

    Thursday, December 1, 2011 4:43 PM

Answers

  • You need to write a script on the onchange event of the yes/no attribute.

     

    Xrm.Page.getControl(attributename).setDisabled(true)

    You can refer the sdk for further help with the syntax.

    HTH

    Sam


    Web: http://www.inogic.com
    Blog: http://inogic.blogspot.com
    Email: news@inogic.com
    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Thursday, December 1, 2011 8:53 PM

All replies

  • You need to write a script on the onchange event of the yes/no attribute.

     

    Xrm.Page.getControl(attributename).setDisabled(true)

    You can refer the sdk for further help with the syntax.

    HTH

    Sam


    Web: http://www.inogic.com
    Blog: http://inogic.blogspot.com
    Email: news@inogic.com
    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Thursday, December 1, 2011 8:53 PM
  • thank you!
    irinakatsev
    Thursday, December 1, 2011 8:57 PM
  • Please make sure to come back and mark the post as the answer and close the thread if it helps you resolve your problem.

    Thanks

    Sam


    Web: http://www.inogic.com
    Blog: http://inogic.blogspot.com
    Email: news@inogic.com
    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Thursday, December 1, 2011 9:49 PM