Page 1 of 1
Field management
Posted: Sun Apr 27, 2025 3:17 pm
by Graeme59
Hi,
If an admin enrols a learner and does not complete all of the fields despite them being mandatory, when the learner attempts to log in for the first time, they are unable to continue because of this.
<div class="form_line_l"><p><label class="floating" for="field_textfield_2">Venue <span class="mandatory">*</span></label></p><input type="text" class="form-control textfield" id="field_textfield_2" name="field_textfield[2]" value="" maxlength="255" alt="Venue" /></div>
What do I need to do to sort it?
See images
Cheers
Graeme
Re: Field management
Posted: Sun Apr 27, 2025 3:25 pm
by alfa24
Re: Field management
Posted: Sun Apr 27, 2025 3:47 pm
by Graeme59
Hi,
I have updated the file, but the error is still happening.
See below.
<html>
<head>
<title>Precompile</title>
</head>
<body>
{{ Template_getTitleArea(Lang_translate('_PRECOMPILE', 'standard')) | raw }}
<div class="std_block">
{{ result_message }}
{{ Form_openForm('precompile_form', 'index.php?r=precompile/set', null, null, 'multipart/form-data') }}
{%if not fields_checked and request_mandatory_fields_compilation == 'on' %}
{% for id_field,m_field in fieldlist.getUserMandatoryFields(id_user) %}
{{ fieldlist.playFieldForUser(id_user,id_field,false,true) | raw }}
{% endfor %}
{% endif %}
{{ Form_getBreakRow() }}
<div class="boxed">
<p class="privacy_policy">
{{ policy_text | raw }}
</p>
{{ Form_getBreakRow() }}
<div class="align-center">
{{ Form_getHidden('policy_id', 'policy_id', policy_id) | raw }}
{{ Form_getCheckbox(Lang_translate('_ACCEPT', 'register'), 'accept_policy', 'accept_policy', 1, false) | raw }}
</div>
</div>
{{ Form_openButtonSpace() | raw }}
{{ Form_getButton('save', 'save', Lang_translate('_SAVE', 'standard')) | raw }}
{{ Form_closeButtonSpace() | raw }}
{{ Form_closeForm() | raw }}
</div>
</body>
</html>
Cheers
Graeme
Re: Field management
Posted: Sun Apr 27, 2025 3:58 pm
by alfa24
Yes, I know.
The fix didn't work for the the user in the topic I provided as well.
Just to say that the bug is known and not solved.
Re: Field management
Posted: Sun Apr 27, 2025 4:00 pm
by Graeme59
Sorry, I have just cleared the twigg cache and it has sorted the problem
Thanks you for your help
Graeme
Re: Field management
Posted: Sun Apr 27, 2025 6:54 pm
by alfa24
Oh! I took that for granted (for the other user as well, let me suggest him too).