Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Albion 7 posts 77 karma points
    Dec 14, 2020 @ 09:40
    Albion
    0

    Perplex - Numeric - Condition is not workng

    Hi

    When we set a form field to show when another numeric field is greater than a number, the condition does not work.

    [Umbraco version 7.6.14 assembly: 1.0.7276.19666]

    [Umbraco Forms: "6.0.8"]

    enter image description here

    enter image description here

    But If I set the type as Text and try equal condition (eg: is ) then it is working.

    Any idea why is it not working for the numeric field?

    Thanks

  • Daniël Knippers 153 posts 1116 karma points MVP 2x c-trib
    Dec 14, 2020 @ 10:37
    Daniƫl Knippers
    0

    Hi Albion,

    Hmm I don't see any logic around the "show field if" settings in our code or in the HTML. This seems to be managed entirely by Umbraco. For example, our HTML of the text field can be found here and does not do anything with it, it just renders an <input> element with validation/error message attributes (and of course the correct type like "number").

    I'm afraid this might be hidden somewhere in the Umbraco Forms JavaScript code where they might be looking only at input[type="text"] elements or something like that. This is just my first idea, but because we have no influence on these "show this field" conditions I am afraid we cannot fix this in our package. If you can have a look at the Forms JavaScript to see how this show/hide is implemented perhaps we can find a solution.

Please Sign in or register to post replies

Write your reply to:

Draft