Hi to all,
I need to remove the required property in an "upload file" action if a file exists.
Check if file exists is executed via php.
How can I try to complete this task?
Form is based on CF V5.
Thanks
Alessandro
I need to remove the required property in an "upload file" action if a file exists.
Check if file exists is executed via php.
How can I try to complete this task?
Form is based on CF V5.
Thanks
Alessandro
Hi Alessandro,
on v5 this is a bit difficult, but it can be done on v6
Best regards,
Max
on v5 this is a bit difficult, but it can be done on v6
Best regards,
Max
Hi Alessndro,
One way to do it in CFv5 would be to have two File Field elements in your form both with the same name - one required and one not. Then use an Event Switcher to use CSS to show/hide them depending on whether the file exists.
Note that you should check also after the form submits as a blank entry can over-write the saved file info unless you remove it before the DB Save.
Bob
One way to do it in CFv5 would be to have two File Field elements in your form both with the same name - one required and one not. Then use an Event Switcher to use CSS to show/hide them depending on whether the file exists.
Note that you should check also after the form submits as a blank entry can over-write the saved file info unless you remove it before the DB Save.
Bob
This topic is locked and no more replies can be posted.