Forum Discussion

JulioPalacios's avatar
JulioPalacios
Community Member
4 years ago

Having difficulty changing font size with a slider

Hi everyone. I'm attempting to build a slider that when moved will change the size of a title. So as the user slides the slider the font size will get bigger.

I can't seem to figure out what I'm doing wrong. I have a title with seven states. Each state has slightly bigger text size. 

I mapped the slider with triggers to activate each state as the slider is moved. 

It doesn't seem to work. At best the text remains the same size, but most of the time the text just disappears. Not sure what I'm doing wrong. 

I'm sure this is a newbie question, as I'm very much a newbie. Any help would be appreciated. 

  • I'm not sure what was wrong with your text box, but there was something, because it couldn't be selected in its normal state. I replaced it with a normal text box, and it seems to work now.

    I adjusted the slider to values from 1 to 7, to match the number of states. I also put in another text box that shows the value of the slider. You can find it in Insert -> Reference. It is a wonderful tool for troubleshooting anything (like sliders) that uses variables.

  • JulioPalacios's avatar
    JulioPalacios
    Community Member

    ah good catch. Not sure what was happening to the text box, but you're right, replacing it fixed the issue. Thanks for sharing the tip about displaying the slider value. You're right, it is a useful tool to know.

    Thank you!