Hi Team,
I have created one association in datalist content model as per below:
<associations>
<association name="classi:picture">
<title>Picture</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
Document picker is working fine.
I want to allow only png and jpeg files to select.
I have tried the way suggested in https://blog.arvixe.com/add-new-form-validation-handler/
if (field.type == "hidden") {
var fileName = field.value;
}I'm getting attached file noderef as an output.
How to get associated file name?
Thanks,
Hardik