Rules and a Page redirect on save

Created on 29 July 2016, over 8 years ago
Updated 4 November 2024, about 2 months ago

Hi all

I have been using entityforms and was wanting to have one of the fields be editable on the submission view page.

I have used this module to get it up and running but id also like to redirect the user after they hit save.

The rules run on 'saving a existing submission' but doesn't like the action to redirect the page (or show a message on the site for that matter)

Any reason for this in particular? Kind of a deal breaker for me which would be a pity as its working exactly how i wanted

S

💬 Support request
Status

Fixed

Component

Miscellaneous

Created by

🇦🇺Australia simonbcfa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇩Indonesia imunklovarian

    i always fail to alter redirect use hook_form_alter() this is my code

    function formid_form_editableviews_entity_form_buat_tugas_alter(&$form, $form_state){
       $form['actions']['submit']['#submit'][] = 'formid_redirect_callback';
    
    }
    
    function formid_redirect_callback($form, &$form_state){
        $form_state['redirect'] = 'tugas-sudah-dibuat';
    }

    the redirect is working but the submission is failing why ? please help me

Production build 0.71.5 2024