You are viewing limited content. For full access, please sign in.

Question

Question

Show some text next to checked checkboxes

asked on September 25, 2015

I have a couple of choices in a check-box field and would like to show some text next to each choice that the user puts a check on.  How can this be achieved?

0 0

Answer

SELECTED ANSWER
replied on September 25, 2015

This one was easy.

 

  
    $('#FieldID').click(function()
    {
        if ($(this).is(':checked'))
        {
            $(this).siblings('label').html('Text when checked');
        }
        else
        {
            $(this).siblings('label').html('Text when unchecked');
        }
    });
  

0 0

Replies

replied on September 25, 2015

Hi there,

You can use the Checkbox config: put text in the options section, and put a short value in the value section.

 

0 0
replied on September 25, 2015

Hi, 

 

I was able to do it using the jQuery I posted above.

 

Thanks

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.