Hi,
you need to edit our code, this is simple.
- into file /administrator/components/com_jsn/models/forms/field.xml you can find XML code to load parameter, you need to add more conditions, example to add new condition add this to line 1038
<field name="spacer_conditions9" label="COM_JSN_CONDITION_LABEL" type="spacer" />
<field
name="condition_operator10"
label="COM_JSN_CONDITION_OPERATOR"
description ="COM_JSN_CONDITION_OPERATOR_DESC"
type="list"
>
<option value="0">COM_JSN_CONDITION_DISABLED</option>
<option value="1">COM_JSN_CONDITION_EQUAL</option>
<option value="2">COM_JSN_CONDITION_GREATER</option>
<option value="3">COM_JSN_CONDITION_LESS</option>
<option value="4">COM_JSN_CONDITION_CONTAINS</option>
<option value="5">COM_JSN_CONDITION_NOTEQUAL</option>
<option value="6">COM_JSN_CONDITION_NOTCONTAINS</option>
</field>
<field
name="condition_field10"
label="COM_JSN_CONDITION_TO"
description ="COM_JSN_CONDITION_TO_DESC"
type="parent"
table="jsn_fields"
level="2"
field_id="alias"
>
<option value="_custom">COM_JSN_CUSTOM_VALUE</option>
</field>
<field
name="condition_custom10"
label="COM_JSN_CONDITION_CUSTOMVALUE"
description ="COM_JSN_CONDITION_CUSTOMVALUE_DESC"
type="text"
/>
<field
name="condition_hide10"
label="COM_JSN_CONDITION_HIDE"
description ="COM_JSN_CONDITION_HIDE_DESC"
type="parent"
table="jsn_fields"
level="2"
field_id="alias"
multiple="true"
/>
<field
name="condition_action10"
type="radio" class="btn-group"
label="COM_JSN_CONDITION_ACTION"
description="COM_JSN_CONDITION_ACTION_DESC"
default="hide"
>
<option value="hide">JHIDE</option>
<option value="show">JSHOW</option>
</field>
<field
name="condition_usergroups10"
type="usergroup"
multiple="true"
label="COM_JSN_CONDITION_USERGROUPS"
description="COM_JSN_CONDITION_USERGROUPS_DESC"
default="0"
>
</field>
Now to activate these condition add new condition also in file
- /administrator/components/com_jsn/views/field/tmpl/edit.php at line 52
- /components/com_jsn/helpers/helper.php at line 216
- /plugins/system/jsn_system/jsn_system.php at line 288
- /plugins/jsn/usergroups/usergroups.php at line 37
$condition_suffix=array('','1','2','3','4','5','6','7','8','9
','10');