23480 Posts in 18951 Topics by 2878 members
|Go to End|
14 June 2009 at 9:30am
I'm trying to update the below code
<li class="even val2"><input id="ShowPoll_MyPoll_PollAnswer_2" name="PollAnswer" type="radio" value="2" class="radio" /> <label for="ShowPoll_MyPoll_PollAnswer_2">This is label 1</label></li>
<li class="even val2"><label for="ShowPoll_MyPoll_PollAnswer_2"><input id="ShowPoll_MyPoll_PollAnswer_2" name="PollAnswer" type="radio" value="2" class="radio" /> This is label 1</label></li>
I can't understand which php file or css is generating the below data .
<% control Fields %>
<% end_control %>
<div class="clear"><!-- --></div>
14 June 2009 at 9:46pm Last edited: 14 June 2009 9:48pm
I think the code you want to change is in CheckboxSetField.php in the function Field(). Sadly the existing formfields are all generated from the PHP rather then template files so it makes it a bit of a mission to change that 1 thing. Ideally all the html should be stripped out into templates. Hopefully we can make this happen if the form improvements for 2.4 go ahead.
Any reason why you need to change it? might be easier to just use CSS. (messy I know) but its that or you edit the CheckboxSetField field function (you could try and decorate the function)
|Go to Top|