Hello,
I’m sorry, but that’s not possible without some of code (the input tags only have a “value” attribute). For example, if the radio button or chekbox field is the fieldname1, and you have selected the “Choice Text” option for the “Value to Submit” attribute, the piece of code to use as part of the equation would be:
For radio buttons:
(function(){
var value = jQuery('[id*="fieldname'+'1_"]:checked').attr('vt')+'('+fieldname1+')';
return value;
})()
For checkboxes the code would be more complex:
(function(){
var tmp = fieldname1, value=[];
jQuery('[id*="fieldname'+'1_"]:checked').each(function(){value.push(jQuery(this).attr('vt')+'('+this.value+')');});
return value.join(', ');
})()
If you need additional help, I can offer you a custom coding service through my personal website:
https://cff.dwbooster.com/customization
Best regards.
Thread Starter
sahilg
(@sahilg)
Thanks, that work for me . Also can you explain me what is the use of
“Value to Submit” with options
“Choice Text” and “Choice Value”
how does they effect form submission or what is their role in form ..?
Hello,
The input tags can submit only a value (the checkboxes, radio buttons, numbers and texts, are represented in HTML with input tags), and the option you are referring allow you decide the information that would be submitted, the texts of the choices, or the choices’ values.
Best regards.