1

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? – Dylan Young 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 . – Abhimanyu Singh Nov 22 '17 at 7:26
0

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

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

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

@Html.Sitecore().Placeholder("wffm-before-submit")
@Html.BootstrapSubmit()
@Html.Sitecore().Placeholder("wffm-after-submit")

  • Added buttton component is page with specific place holder
| improve this answer | |

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.