Old input in user registration field
Created 7 years ago by keevitajaHow to get the old input in register.twig
form? request_old
nor the session
will work
{% set register = form('register').get() %}
{{ register.open({'class': 'form'})|raw }}
<div class="form-group">
<label for="email">{{ trans('labels.email') }}</label>
<input type="text" name="email" id="email" value="{{ what the hell should i write here???? }}">
</div>
ryanthompson
—
7 years ago
@keevitaja when you say 500.. again this means absolutely nothing. Give us some details or we can't help you.
keevitaja
—
7 years ago
keevitaja
—
7 years ago
@ryanthompson any idea how to get old input in the overwritten register.twig? First post of this topic has the twig code
ryanthompson
—
7 years ago
Try using {{ request_old() }}
You can write
{{ register.fields.email.value }}