tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/24-add-multiple-values-for-dynamic-fields-using-wsdlCascade CMS: Discussion 2018-10-18T20:35:55Ztag:help-archives.hannonhill.com,2010-02-09:Comment/16751722010-05-13T16:40:13Z2010-05-13T16:40:13ZAdd multiple values for dynamic fields using wsdl<div><p>This is a pretty common mistake when using PHP that I've run
into myself. I believe the problem is that keys must be unique -
notice that you have two 'fieldValue' keys in your last array. Try
changing that part of the code to something like this:<br></p>
<pre>
<code>'fieldValues'=>array(
array(
'value'=>'My first val'
),
array(
'value'=>'blahblag'
)
)</code>
</pre></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/16751722010-05-14T04:11:38Z2010-05-14T04:11:38ZAdd multiple values for dynamic fields using wsdl<div><p>Hi Tim,<br>
thanx for the quick reply... Your solution worked fine...<br>
I'd also like to add that while trying all sorts of different
combinations last night, i found there are other ways to place
multiple values in dynamic fields.. one such combination is to use
this:<br></p>
<pre>
<code> array(
'name'=>'Category, Other',
'fieldValues'=>array(
'fieldValue'=>array(
'value'=>'My first Val'
)
)
),
array(
'name'=>'Category, Other',
'fieldValues'=>array(
'fieldValue'=>array(
'value'=>'My 2nd Val'
)
)
),</code>
</pre>
<p>another way would be to use this:<br></p>
<pre>
<code> array(
'name'=>'Category, Other',
'fieldValues'=>array(
'fieldValue'=>array(
array(
'value'=>'first val'
),
array(
'value'=>'2nd val'
))
)
),</code>
</pre>
<p>However, i would use ur solution in my project as it is more
streamlined and easier to type... Just would like to share this to
others just in case...<br>
Thanks again for the quick reply... I really appreciate your
help...<br>
PS. its a good thing your support forum is really fast because i
cant seem to find solutions from the kb in the site as well as
proper documentation...</p></div>chip