plain-solutions-gmbh / kirby-form-block-suite

This form plugin for Kirby offers you maximum flexibility and usability. It can be used as a block anywhere you needed. This repository replaces the obsolete version 2.0.
Other
38 stars 11 forks source link

Different “Send” submit values. #21

Closed smongey closed 1 year ago

smongey commented 1 year ago

Not strictly an issue but definitely a potential feature. I’d like to be able to update the submit button value “Send” and for it to be form specific rather than global.

I’m exploring using this on a site but there are multiple different form types and while I can configured the label in the config file that wont allow me to tailor this to each individual form and page. Would be nice if this possible on the Options tab in the panel potentially.

Is there a way to do this that I’ve perhaps missed?

plain-solutions-gmbh commented 1 year ago

This feature is already included.

To achieve this, you'il have to copy the options blueprint site/plugins/kirby-form-field/blueprints/snippets/form_options.yml to site/blueprints/snippets and add a field like this:

send_button:
  label: Custom Button Text
  type: text

Additional Information: https://github.com/youngcut/kirby-form-block-suite#extend-options

plain-solutions-gmbh commented 1 year ago

Is the problem solved? Can i close this issue?

smongey commented 1 year ago

Yep, this worked a treat.