Webforms Administration - Printable Version

+- CoreBOSBB (
+-- Forum: Support (
+--- Forum: Administrator Support (
+--- Thread: Webforms Administration (/showthread.php?tid=77)

Webforms Administration - anilp78 - 01-14-2015


Is it possible to map any leads field type in a webform to radio buttons in html? Is there any way to do it, as I do not see a radio button type in fields.

Please suggest if there is a way to do it.


Re: Webforms Administration - joebordes - 01-14-2015

HTML radio buttons are totally equivalent to picklist. coreBOS implements picklists and not radio buttons.
That said, it is very easy to modify your webform to use radio buttons. Let's say that you have a picklist called "sex", with values "Male" and "Female". The web form will generate html code like this:

<select name="sex">
<option value="Male">Male</option>
<option value="Female">Female</option>

which you can substitute with

<input type="radio" name="sex" value="Male">Male<br>
<input type="radio" name="sex" value="Female">Female

Note that the important part here is that the "name" attirubte use the name of the field in coreBOS

Give that a try and let us know how it goes.

Re: Webforms Administration - anilp78 - 01-15-2015

Thanks Joe, I had figured out a little later that it was a lame question <!-- sSad --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="Sad" title="Sad" /><!-- sSad -->
I was able to do it easily, like you said, by using the Name attribute.
Thanks anyways !


Re: Webforms Administration - joebordes - 01-15-2015

<!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->

Re: Webforms Administration - anilp78 - 01-25-2015

I am facing a problem with the html name attribute of webform fields, for example, "label:course[]" is the html name of a custom list field that i created in corebos leads module and using in webform.
How do i use this field name in the javascript code? The script doesnt work with name containing special characters.

Can you help? Thanks.


Re: Webforms Administration - joebordes - 01-25-2015

I gave it a try and eneded up with this code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">

<html xmlns="" xml:lang="en">
        <script type="text/javascript" src="include/jquery/jquery-1.6.2.min.js"></script>

<form id='inform' name="inform">
    <input name="label;course[]" />
    <input name="label;course[]" />
    <input type="submit">
<input name="label:course[]" />
<input name="label:course[]" />
<script type="text/javascript">
$( document ).ready(function() {
    jQuery.each($("#inform :input"),function(index, elem) {
        if ('label;course[]') {
    jQuery.each($("input[name='label:course[]']"),function(index, elem) {

Drop that into the root of your coreBOS install and it should work. Note how I have to change the colon for semi-colon in the name. Very strange.

My recommendation would be to use the field name: webforms should work correctly both with the "label:{label}" syntax and the "{fieldname}" syntax. So, if label:course is cf_888, both of these will work:

<input name="label:course[]" />
<input name="cf_888[]" />

that means that if you don't need to do anything with the form, the "label:{label}" syntax is fine, but if you need to do validations and the like, you may be better off using the fieldname.

Re: Webforms Administration - anilp78 - 01-26-2015

okay that means i will have to figure out the fieldnames of each custom field, like cf_888 for label:course[]. Just guessing if there is an easy list available for that, I think the email template is one place where fieldnames are used, or else i have to get into mysql tables.

thanks, I will give it a try now.

Re: Webforms Administration - joebordes - 01-26-2015

The easiest way to find that information is on the edit screen:
  • * go to the module you have the field on
    *edit a record
    *right click on the field you want to find
    * select "inspect element"
    * that will show you the html of that field
    * look for the "name" attribute of the input element, there you will see the number assigned to your custom field
    * another way is to select the field by clicking and dragging the mouse over the input field
    * click the right button on the selected area
    * select "show selected html source"

the information is also in the vtiger_field database table.