coralproject / cay

Front-end code for Coral community tools
Other
20 stars 5 forks source link

Make ask form submit button text customizable #778

Open impronunciable opened 7 years ago

impronunciable commented 7 years ago

Expected behavior

Looking at this Univision form https://twitter.com/gjbarb/status/836233585787043840 the submit button is in english while the rest is in spanish

Actual behavior

Allow the customization of the submit button text for translation and ux. Submit is not always the right phrasing for a call-to-action even in english

Steps to reproduce behavior

Open a form

kgardnr commented 7 years ago

We also need to do this with the "Thank you" message.

arreche commented 7 years ago

It looks like that Submit button is part of a generic footer in the elkhorn form builder

https://github.com/coralproject/elkhorn/blob/master/src/components/Footer.js#L24

arreche commented 7 years ago

@jtnelson suggested asking the user to enter a custom call to action text in cay so it can be used to replace the default Submit button in elkhorn.

Required changes:

  1. Add a new widget in the cay form to enter the call to action text
  2. Include this text in the json posted to elkhorn
  3. Replace the default Submit label by this text