Does the file field not support columns? It seems to be ignoring my columns setting altogether, I’m not seeing the data-piklist-field-columns=”#” attribute on the div despite having a ‘columns’ => 6 in my file field array.
Also, is it possible to limit the number of files (before the user has published)?
@pupppet– It looks like that may be a bug with the file field type. We’ll look into that.
As for limiting the number of files a user can upload, you can use the limitvalidation rule. However, this doesn’t trigger until after the user saves their data. This is because Piklist uses the server to validate data, not javascript. The server is way more secure than javascript.
As for limiting the number of files a user can upload, you can use the limit validation rule.
I hear ya, I guess I was hoping for something client-side as well for a better use experience (a user shouldn’t see an ‘add’ button if it’s not an option).
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.