-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.1.3
-
Fix Version/s: 5.2.0-B1
-
Component/s: Front End
-
Labels:None
-
External issue URL:
-
Change Log Message:Fixes FieldModifier tag inability to work with multilingual fields
-
Story Points:1
-
External issue ID:1149
-
Copy Issue Key:
-
Patch Instructions:
Tag [b]FieldModifier[/b] can be used to make fields on form required from template (not from PHP).
This can be very useful if you don't know PHP, but not very secure, since removing hidden fields, created by FieldModifier tag (from form submit) will also make fields not required.
FieldModifier tag should be placed within hidden field's name before actual field (to be required) is shown, for example:
<input type="hidden" name="[b]<inp2:l_FieldModifier field='cust_LinkAddress' type='required' value='1'/>[/b]" value="1"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="l" field="cust_LinkAddress" title="lu_fld_LinkAddress"/>
But this tag isn't working at all, when you try to make multilingual custom field required (don't show "*" mark near field name & don't check if it was filled on submit).
For example this has no effect:
<input type="hidden" name="<inp2:l_FieldModifier field='cust_MLField' type='required' value='1'/>" value="1"/>
<inp2:m_RenderElement name="inp_edit_box_ml" prefix="l" field="cust_MLField" title="lu_fld_MLField"/>