Webforms Administration - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: Webforms Administration (/showthread.php?tid=77) |
Webforms Administration - anilp78 - 01-14-2015 Hi, 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. thanks, 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: Code: <select name="sex"> which you can substitute with Code: <input type="radio" name="sex" value="Male">Male<br> 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 <!-- s --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="" title="Sad" /><!-- s --> I was able to do it easily, like you said, by using the Name attribute. Thanks anyways ! Anil Re: Webforms Administration - joebordes - 01-15-2015 <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s --> Re: Webforms Administration - anilp78 - 01-25-2015 Hi, 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. Anil Re: Webforms Administration - joebordes - 01-25-2015 I gave it a try and eneded up with this code: Code: <?xml version="1.0" encoding="UTF-8"?> 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: Code: <input name="label:course[]" /> 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:
the information is also in the vtiger_field database table. |