libreform / wp-libre-form

Easy native HTML5 forms for WordPress. Version 1.5 is unmaintained, but works without issue. 2.0 has been rewritten from the ground, and can be found at https://github.com/libreform/libreform
https://wordpress.org/plugins/wp-libre-form
GNU General Public License v3.0
67 stars 27 forks source link

Better default subhmission title #156

Closed luizbills closed 5 years ago

luizbills commented 5 years ago

Currently the default title is %name% <%email%> (i guess). But I propose to make this a empty title and use %form-title% #%submission-id% as default title.

If my form is called "Contact Form", will generate automatically an submission with title: Contact Form #1234

timiwahalahti commented 5 years ago

This makes sense to me, we just need to make sure that there is some kind of default title if the form has no name.

@k1sul1 opinions? @luizbills would you like to do PR?

luizbills commented 5 years ago

...we just need to make sure that there is some kind of default title if the form has no name.

Maybe Submission as default prefix/title.

@luizbills I have no time to PR, sorry.

k1sul1 commented 5 years ago

I guess this is just a matter of setting the new default, as any forms that existed before that change have saved the value in a database, so changing it won't break anything.

The only problem is that right now the only values it supports are the input fields on form, so %form-title% and %submission-id% are something that don't exist.