php-form-builder
php-form-builder copied to clipboard
No placeholder parsing
$end .= $val['placeholder'] ? ' placeholder="'.$val['placeholder'].'"' : '';
Great!
Hello. I can't get the placeholder working, could you help me, please? How or where do I need to put that code @nilsgraustins @itsalb3rt ? Thank you in advance.
@luisantoniome check in line 354 (or minus) this fragment
default :
$element = 'input';
$end .= ' type="' . $val['type'] . '" value="' . $val['value'] . '"';
$end .= $val['checked'] ? ' checked' : '';
$end .= $val['placeholder'] ? ' placeholder="'.$val['placeholder'].'"' : ''; // Copy this line
$end .= $this->field_close();
break;
Got it, big thanks, @itsalb3rt !
@luisantoniome check in line 354 (or minus) this fragment
default : $element = 'input'; $end .= ' type="' . $val['type'] . '" value="' . $val['value'] . '"'; $end .= $val['checked'] ? ' checked' : ''; $end .= $val['placeholder'] ? ' placeholder="'.$val['placeholder'].'"' : ''; // Copy this line $end .= $this->field_close(); break;
Thanks bro!..