Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-933

Tag FieldModifier doesn't work with multilingual fields

    XMLWordPrintable

    Details

    • 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

      Description

      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"/>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: