Tag FieldModifier doesn't work with multilingual fields (v 5.1.3)

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Oct 19, 2011, 4:12:46 AM10/19/11
to In-Portal Bugs
Tag FieldModifier 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="<inp2:l_FieldModifier field='cust_LinkAddress' type='required' value='1'/>" 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"/>



Ready for testing.


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
fieldmodifier_tag_ml_field_fix_513.patch
fieldmodifier_tag_ml_field_fix_520.patch

Phil -- wbtc.fr --

unread,
Oct 19, 2011, 7:51:16 AM10/19/11
to in-port...@googlegroups.com
hehe, nice catch !

2011/10/19 Alexander Obuhovich <aik....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Reply all
Reply to author
Forward
0 new messages