vlab-research / fly

The Fly Survey platform
Other
2 stars 3 forks source link

Allow users to set custom messages in dashboard-client #61

Open calufa opened 2 years ago

calufa commented 2 years ago

Currently, we use default messages for different errors and stages during the messaging flow, see, https://github.com/vlab-research/translate-typeform/blob/master/validator.js#L6-L13.

While these default messages can be overwritten by user-defined messages set in Typeform while creating a survey, Typeform UI has different restrictions depending on the message label. For example label.error.mustEnter and label.error.emailAddress could have different validation logic, allowing label.error.emailAddress to support more characters than label.error.mustEnter.

We would like a way to be able to specify custom messages in dashboard-client instead of relying on Typeform.