Home › Forums › Quform WordPress › Customised upload path for 2 forms
Hi there!
I’ve got one form where I customised the upload path with some instructions I found online – by editing my funktions.php. Everything works perfect!
***
function mytheme_override_upload_path($path, $element) { $Username = $element->getForm()->getValue(‘IPHORM-ID’);
return “newpath/$Username/”; } add_filter(‘iphorm_upload_path_2’, ‘mytheme_override_upload_path’, 10, 2);
Now I have the problem that we need another form with the same functions – upload path via IPHORM-ID. How do I put that in my functions.php?
Help would be veryyyyy nice.
Tanks in advance Cheers
J.