surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.22k stars 816 forks source link

Custom attribute change language #9009

Closed fengzhihenxs closed 2 weeks ago

fengzhihenxs commented 3 weeks ago

Hello, I use the latest survey library, and the custom attributes don't change properly when changing the language. Custom property "info", which is visible when hovering over the title. What's going on? Looking forward to hearing from you.

Example address:https://codesandbox.io/p/sandbox/surveyjs-angular-forked-w79l77

JaneSjs commented 2 weeks ago

Hello @fengzhihenxs, The options.question.info returns the current localization text. The issue is that when a user changes the locale, the tooltip text is not updated. Instead, it uses the default locale text which you defined initially. In SurveyJS Forms, we do not basically use tooltips because they are unavailable on mobile devices. I may recommend that you consider an alternative option. Use question.description to display some helpful text; register a custom title action to allow users to show and hide the descriptive text: View Demo. image

Let me know if this option suits you.

fengzhihenxs commented 2 weeks ago

Thank you so much. This is also an option that there is no way out.