44 Posts
Tina
8 years ago
Topic

My customer noticed when she presses the Submit button alternative link, Reset, that it does not reset the search results. She would like me to either change the Reset link name to "Reset the Form" or to change the functionality so that it resets the search results too. 

Change Reset Link Name

I saw from another reset link post, how to hide the Reset Link in the field settings. You select the field Show Alternative from "Use Default" to "hide". I want to display the Reset link but change the link name to "Reset the Form". I can change Show Alternative to "Custom", then the Text/Link appears, change that to "Reset the Form", then there is another field next to it to select items in a drop down, with a plus link next to it. I don't know how to include the existing Reset functionality.

Change Reset Link function to also reset search results -- not sure how to do this.

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
3
Level 1

You can add another Submit button in Reset mode, then you can choose text and/or icon for it

http://www.seblod.com/resources/extensions/plug-ins/button-submit-field

44 Posts
Tina
8 years ago
2
Level 2

I added a submit button labeled, "Reset" and selected the task, "Reset & Search" to reset the fields and run the search. There is also the task, "Reset" that just resets the fields if needed. I also switched the Submit button to a Search button (type Submit) with the search label icon and show alternative to "Hide" since I don't need the reset link.  

Now the Reset button is under the Search button. I want them next to each other. I added a div around the two buttons w/ custom attribute "style: inline;" but that did not work. Any suggestions for adding classes to the buttons or custom attributes to the div?

4229 Posts
Kadministrator
8 years ago
1
Level 3

If your template uses boostrap you can set Markup to None (button 6 on the right), then group button using

http://getbootstrap.com/components/#btn-groups

44 Posts
Tina
8 years ago
0
Level 4

Thank you. That seemed to work.

Get a VIP membership