• Resolved Rookie

    (@alriksson)


    How do I remove the submit button with php to no only hide it?

    It’s not always you have to submit something. And There is no option in the editor to remove it from the form.

    Any php snippet to sort it with for now?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor WPManageNinja

    (@wpmanageninja)

    You can use the following code snippet:

    add_filter('fluenform_rendering_field_html_custom_submit_button', function ($html, $data, $form) {
                if($form->id == 111) {
                    return ''; // return no html for form id 111
                }
                return $html;
            }, 10, 3);
    Thread Starter Rookie

    (@alriksson)

    Great, thanks!

    But it does not seem to work for me Changed to the form ID I have but still appears. No cache issues already tested that.

    • This reply was modified 5 years, 8 months ago by Rookie.
    Thread Starter Rookie

    (@alriksson)

    Any ideas?

    Plugin Contributor WPManageNinja

    (@wpmanageninja)

    Please submit a support ticket

    Thread Starter Rookie

    (@alriksson)

    The ticket is here, this is a feature in free would reuqest a feature to be able to remove it in the editor. But until then I wish to do it in one way or antoher.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove submit button’ is closed to new replies.