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

Question

Question

Capture Name of Checkbox

asked on March 4, 2016

Hello,

I have a BP where I am filling up a form & then in another form I have Custom HTML field where I am retrieving the data as variables.

I want to know how can I capture the name of the checkbox & radio button fields?

I can't give it static, as the value is only needed if they are selected.

I am open to use hidden fields if that is the way to go, but I would need help with Javascript to achieve this....

 

Thanks in advance!

Sahil

0 0

Answer

SELECTED ANSWER
replied on March 7, 2016

Try this:

   $('#q59 input').on('change',function(){

   var str = "Manuelles eingabefeld" +" " + $('#Field59_other_value').val() + " " + "Meter";

                        $('#q119 input').val(str);

                    });

1 0
replied on March 7, 2016

Perfect!!!

0 0

Replies

replied on March 4, 2016

This has done the job:

$('#q59 input').on('change',function(){
    var str = "Manuelles eingabefeld";
        $('#q119 input').val(str);
      });

It's not so elegant, but does the job

0 0
replied on March 4, 2016

Hi again,

I am stuck with a little bit of ...

As per the quote, I have a check box with the value coming from "Other"

In my code I am trying (or at least want to) capture the value put by the user, but it gives the result as _other

So the end result should be: Manuelles eingabefeld 234 Meter

where 234 is what the user fills in the value

 

Please tell how to capture the value input by the user?

$('#q59 input').on('change',function(){
    var str = "Manuelles eingabefeld" +" " + $('#q59 input').val() + " " + "Meter";
        $('#q119 input').val(str);
  	});

 

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

Sign in to reply to this post.