Question T14611
Visible to All Users

Inputmask + cutom widget

created a year ago

Hello, we have question in our survey (angular app) which has inputmask and tooltip (our custom widget). When custom widget is applied, inputmask stops working. Could it be that two widgets are not allowed?

Comments (3)

    Hello Saulius,
    Inputmask is a third-party library, and a custom widget has its own implementation. Perhaps, your custom widget somehow affects Inputmask functionality, however, it is difficult to determine why Inputmask stopped working when your custom widget applied. I may look into this issue and determine whether I can find anything related to the issue. Please share a simplified demo which reproduces the issue so that I can review it on my side.

    Thanks

      If you could run survey creator on SurveyJS + Angular Quickstart Template you would see that inputmask/inputformat does not work on 'Text with button' custom widget.

        Hello Saulius,
        Thank you for the clarification. I may need additional time to test this issue. Please stay tuned.

        Answers approved by surveyjs Support

        created a year ago

        Hello Saulius,
        Thank you for your patience. I researched this issue. As outlined within the Custom Widgets topic, it is possible to apply only one custom widget for a question. Therefore, if you already registered a Text With Button widget which applies for text-input fields, it is impossible to register an additional Inputmask extension.

        From what I gather, you use SurveyJS Library for Angular. In this case, I would recommend that you implement a custom Angular component which renders a text input with a button and register it as a custom question type. For more information on this option, please refer to the following help topic: Integrate Third-Party Angular Components. With this option, you'll be able to apply inputmask for your custom question type.

        Please let me know if you have additional questions.