We are trying to add more then one button in a WFFM form and each button will perform a different action. Currently the only option is to have a Submit button.

We are using Sitecore 8.1 and WFFM in our solution.

  • Could you provide more detail about what the problem you're facing is? Have you consulted the WFFM documentation for adding custom actions?
    – Kasaku
    Nov 21 '17 at 12:27
  • He doesn't want to create a custom action, he's looking for a way to have two buttons. By default WFFM only has the Submit button. @Abhimanyu Singh could you describe what the second button will do? Nov 21 '17 at 13:31
  • My objective is to add button that will initially perform like "Back" ,"Redirect to page " or "Cancel" . </br> We will be reusing this feature to other website forms and it should be generic so that we can plug it any where .
    – Abhi
    Nov 22 '17 at 7:26

There is no out of the box feature for adding two buttons in WFFM forms. However you can try adding a new button using jQuery (by basic DOM manipulation). Please refer this link for more details on configuring submit button in WFFM forms

  • 1
    Can you include a little more details (ex. a code example) about how you would achieve this with JQuery. Nov 21 '17 at 18:28

I raised this issue with sitecore and they said the Current WFFM does not support this .
Then i did some customization in existing WFFM \Views\Form\EditorTemplates\FormViewModel.cshtml file .

  • Created a button component that will read the data from paramater renderings
  • I added two placeholder so that i can plug my button component


  • Added buttton component is page with specific place holder

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.