Im have a RelationShip Field expression Engine generate a field name like this
<select name=”blogs[data][]”> <option value=”1”>Blog 1</option>
Im need validate if The selected Blog its created only by the Logged in user, because multiple users can read all entries un a relation pre-filled field
how can?
if im use build in Form rule, The validation system its broken because te field send a array, and the validation system dont read array fields.
For example
for example {exp:channel:form channel="News" rules:blogs="enum[20,21]"} return
<h1>Notice</h1>
<h2>Array to string conversion</h2>
ee/legacy/libraries/Form_validation.php, line 826
<ul>
<li><b>Severity</b>: E_NOTICE</li>
</ul>
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.