php-form-builder icon indicating copy to clipboard operation
php-form-builder copied to clipboard

No placeholder parsing

Open nilsgraustins opened this issue 7 years ago • 5 comments

$end .= $val['placeholder'] ? ' placeholder="'.$val['placeholder'].'"' : '';

nilsgraustins avatar Aug 18 '18 19:08 nilsgraustins

Great!

itsalb3rt avatar Oct 14 '18 03:10 itsalb3rt

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 avatar Nov 02 '18 21:11 luisantoniome

@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;

itsalb3rt avatar Nov 05 '18 17:11 itsalb3rt

Got it, big thanks, @itsalb3rt !

luisantoniome avatar Nov 05 '18 17:11 luisantoniome

@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!..

robvimudesignwp avatar Jul 02 '21 20:07 robvimudesignwp