Dependent file upload option based on select field in form
I need to have a different directory for an file upload field based on a selected option:
so I have an option in a select field:
How to add one or two or three instead of here-will-be-one-two-or-three placeholder based on what I select in the 'first' select box?
Basically, I want to store the file in different folders based on what the user selects in options of select box.
1 Reply
Can I put some function in the ->directory() that would query to currently selected option in the selectbox? How to access the currently selected value from the selectbox field inside ->directory() in the FileUpload field?