0

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.

  • You can override settings via hook_entity_load() but I recommend using a WebformHandler plugin. – jrockowitz Aug 13 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.