locked
Display textbox without creating attribute RRS feed

  • Question

  • Would it be possible to diplay a textbox on the form without creating a field/attribute? I would like the textbox to be read-only and display a total from a script.

    Tuesday, March 9, 2010 5:37 PM

Answers

  • Hi
    I think you better create a attribute and make it readonly on the form.
    regarding adding a textbox at run time, I think it may be possible on crmForm.Load() event using javascript & dhtml. but it will be non-supported.
    Muhammad Ali Khan
    My MS CRM blog
    • Proposed as answer by Mayank Pujara Tuesday, March 9, 2010 5:45 PM
    • Marked as answer by CRMPROD01 Tuesday, March 9, 2010 8:56 PM
    Tuesday, March 9, 2010 5:41 PM

All replies

  • Hi
    I think you better create a attribute and make it readonly on the form.
    regarding adding a textbox at run time, I think it may be possible on crmForm.Load() event using javascript & dhtml. but it will be non-supported.
    Muhammad Ali Khan
    My MS CRM blog
    • Proposed as answer by Mayank Pujara Tuesday, March 9, 2010 5:45 PM
    • Marked as answer by CRMPROD01 Tuesday, March 9, 2010 8:56 PM
    Tuesday, March 9, 2010 5:41 PM
  • Muhammad's initial recommendation is a solid one, as you may find yourself needing this total for more than just display, and having it saved to an attribute will help tremendously later on when it comes to Workflows or other programmatic operation on your entity.
    Dave Berry
    Tuesday, March 9, 2010 5:52 PM
    Moderator
  • Hi
    I think you better create a attribute and make it readonly on the form.
    regarding adding a textbox at run time, I think it may be possible on crmForm.Load() event using javascript & dhtml. but it will be non-supported.
    Muhammad Ali Khan
    My MS CRM blog

    Could you give more detailed description? Any examples for reference?
    Saturday, January 15, 2011 2:19 AM