How set a custom redirect confirmation path to webform programmatically

by Mauricio   Last Updated August 13, 2019 14:07 PM

i'm trying to set a custom URL to redirect when the process of webform submit is completed without use the confirmation settings of webform. I Actually try with this:

$entity->setSettingOverride('page_confirm_path','/custom-path');

in my hook_entity_presave(), if i inspect the object 'settings' the page_confirm_path is set with value '/custom-path' but don't works the redirect after submit, and if i see the config of this webform don't see this custom path in confirmation tab.



Related Questions


Updated May 18, 2019 15:07 PM

Updated May 30, 2019 03:07 AM

Updated August 10, 2019 13:07 PM

Updated May 21, 2019 13:07 PM

Updated June 07, 2019 16:07 PM