Hello!
I'm doing a form that downloads a file to the user depending of checked or unchecked variables.
All is working fine excepts that all the actions that I put after the "file download" action on submit event.
Here the code that I use to enable or disable the file download action:
Example: If I put "send email" action after "File Download" action it doesn't work. But If I move "Send Email" before "File Download", it works.
In any case, the submit actions didnt finish, because once the file has downloaded, the form stops (didnt go to a new page (confirm) or similar.
>> Could you help me, please?
(I cannot attach image to the post, sorry)
I'm doing a form that downloads a file to the user depending of checked or unchecked variables.
All is working fine excepts that all the actions that I put after the "file download" action on submit event.
Here the code that I use to enable or disable the file download action:
<?php
if ( !empty($form->data['extra_imgcorp']) && ($form->data['extra_imgcorp'] == '1') )
{ $form->actions_config[6]["enabled"] = 1; }
else { $form->actions_config[6]["enabled"] = 0; }
?>
Example: If I put "send email" action after "File Download" action it doesn't work. But If I move "Send Email" before "File Download", it works.
In any case, the submit actions didnt finish, because once the file has downloaded, the form stops (didnt go to a new page (confirm) or similar.
>> Could you help me, please?
(I cannot attach image to the post, sorry)