You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created by: Clive Portman ([email protected]) on 2015/10/13 07:13:43 +0000
Votes at time of UserVoice import: 1
Could the fields within craft/app/templates/_includes/forms/ contain:
{%- if required is defined and required %} required {% endif %}
so we can make them required like so:
{{ forms.text( {
id: 'schoolname',
name: 'title',
value : school.title | default,
placeholder : 'e.g. Name of school',
required: TRUE
} ) }}
This discussion was converted from issue #1240 on July 13, 2021 04:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Could the fields within craft/app/templates/_includes/forms/ contain:
{%- if required is defined and required %} required {% endif %}
so we can make them required like so:
{{ forms.text( {
id: 'schoolname',
name: 'title',
value : school.title | default,
placeholder : 'e.g. Name of school',
required: TRUE
} ) }}
Beta Was this translation helpful? Give feedback.
All reactions