Question T13320
Visible to All Users

Clear number conditionally

created 2 years ago

Hi,

I'm wondering how we should clear numbers (in single input type: number) conditionally in logic.
When element is text-type we can set '1' or whatever is present but empty (?), but with number-type it's seems like we need another way to clear input value?

In the example (attached json) both types (size: text, size2: number) actually fails in logic gui, but still seems to work. My impression from earlier work is though that it should be working for text-type, but not for number. Either way the question remains if this a correct way of clearing value number-type?

We want to disable this type of elements instead of hiding them, and that is the reason we make the rules in logic/editor.

Show previous comments (7)

    Sounds very good. Thank you both!

      You're very welcome! Please feel free to contact us at any time.

      We hope you enjoyed the level of service you received. If so, we would love if you could leave your feedback on SurveyJS page at g2.com. As we’re building our business, every review helps build credibility for future customers and your feedback would be greatly appreciated.

        Hello,
        FYI: The issue has been fixed by this PR. The fix should be available in next version that we will release next week.

        Thank you,
        Andrew
        SurveyJS Team