mr.mc.mauser Posted February 15, 2017 Share Posted February 15, 2017 Hello, i have Build an Easy Form: (quick and dirty) <?php $modules = wire('modules'); $form = $modules->get("InputfieldForm"); $form->setMarkup([ 'list' => "{out}", 'item' => "\n\t<div class='form-group' {attrs}>\n{out}\n\t</div>", 'item_label' => "<label>{out}</label>", ]); $form->method = "POST"; $form->action = "./"; $form->class = "form"; // Name field $singleField = $modules->get('InputfieldText'); $singleField->placeholder = __("Test1"); $singleField->label ="Test"; $form->add($singleField); $singleField = $modules->get('InputfieldText'); $singleField->placeholder = __("Test2"); $form->add($singleField); echo $form->render(); ?> In the Generated HTML for my Site is in the Label Tag an I Tag ? <form id="InputfieldForm1" class="form InputfieldForm" method="POST" action="./" data-colspacing="1"> <div class='form-group' class='Inputfield InputfieldText ui-widget' id='wrap_InputfieldText2'> <label>Test<i title='Umschalten offen/geschlossen' class='toggle-icon fa fa-fw fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label><div class='InputfieldContent ui-widget-content'><input id="InputfieldText2" class="InputfieldMaxWidth" type="text" maxlength="2048" placeholder="Test1" /></div> </div> <div class='form-group' class='Inputfield InputfieldText ui-widget' id='wrap_InputfieldText3'> <div class='InputfieldContent ui-widget-content'><input id="InputfieldText3" class="InputfieldMaxWidth" type="text" maxlength="2048" placeholder="Test2" /></div> </div><input type='hidden' name='TOKEN1254019649X1487174874' value='4niTWcet6wsEdi09R/hPEEiZfOIoAxLw' class='_post_token' /></form> How i can Remove the I Tag in my Label ? Greetings Robert Link to comment Share on other sites More sharing options...
louisstephens Posted February 15, 2017 Share Posted February 15, 2017 I believe @LostKobrakai had something about this here: $field->collapsed = Inputfield::collapsedNever; However, someone please correct me if I am wrong. 2 Link to comment Share on other sites More sharing options...
mr.mc.mauser Posted February 15, 2017 Author Share Posted February 15, 2017 Thanks it works fine Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now