Global Variable in Slider Variable

Welcome to our Forums Product Development Bug reports Global Variable in Slider Variable

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1585
    jordan
    Participant

      I understand that global variables ought to be able to used anywhere numbers are used, however, it seems like that is not the case when setting the limits on a slider global variable. In the attached image, I am attempting to use 2 value variables to set the limits on a slider variable. I am not sure if this is my own lack of understanding of the syntax, or a known limitation, but I would like the functionality. Screen Shot 2019-09-27 at 14.31.06

      #1677
      dgteam
      Moderator

        You’re correct that the slider does not accept variables.  The only variable that does accept other variables is the expression.

        We think we could modify the slider for this to work, but here is a trick you could use now to get essentially the same effect …

        • leave the slider in the default of zero to one
        • create an expression variable
        • set the min and max (either in the expression or as separate variables)
        • set the expression to (max-min)*slider+min

        sliderminmax

        In this example, the variable ‘number’ will change when you move the slider between the min and max.

         

         

        #1690
        jordan
        Participant

          This trick totally works for my purposes. I will be using it and thanks for the info! From a UX standpoint you may consider making the change, just because in pretty much every other instance you can replace any static number with a global variable. Constancy helps from a users point of view. Thanks for the quick response!

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.

        Welcome to our Forums Product Development Bug reports Global Variable in Slider Variable