locked
Image/Picture/Icon RRS feed

  • Question

  • Hi All,

    Is there a way using javascript or something to have a picture or icon which changes as the state of checkbox changes??

    Regards,
    Tuesday, February 9, 2010 8:12 AM

Answers

  • Hi.

    You can insert IFrame in your form and set src url to picture depends on checkbox state.
    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Tuesday, February 9, 2010 8:19 AM
    Moderator
  • To be unsupported, you can locate a location within the html of a form using the View Source of IE and add a <img> image tag into the innerHtml of your chosen location element (such as a <td> using javascript. Initially setting the image in the Form onload and then updating on the onchange of the checkbox. I've had issues where the onchange of a check box wouldn't fire until form save so you may need to attach a function to the onclick event of the checkbox. 
    Tuesday, February 9, 2010 8:48 PM
    Moderator

All replies

  • Hi, Danpri.

    There are a lot of pictures and icons in CRM. What exactly picture you mean?
    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Tuesday, February 9, 2010 8:14 AM
    Moderator
  • What I want is that I have a checkbox with YES and NO and I want to have some kind of small picture so that when it is YES it is one picture when it is NO it is another picture...... for example were there is YES there is a VERY GOOD picture and when it is NO there is a X picture...... it don't know if you can understand me???

    Tuesday, February 9, 2010 8:16 AM
  • Hi.

    You can insert IFrame in your form and set src url to picture depends on checkbox state.
    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Tuesday, February 9, 2010 8:19 AM
    Moderator
  • But IFrame takes a lot of space....... We just want a small picture.............
    Tuesday, February 9, 2010 8:24 AM
  • To be unsupported, you can locate a location within the html of a form using the View Source of IE and add a <img> image tag into the innerHtml of your chosen location element (such as a <td> using javascript. Initially setting the image in the Form onload and then updating on the onchange of the checkbox. I've had issues where the onchange of a check box wouldn't fire until form save so you may need to attach a function to the onclick event of the checkbox. 
    Tuesday, February 9, 2010 8:48 PM
    Moderator