Using a dropdown to make an input +ve or -ve

I have a numerical input, with a dropdown which should change the number from positive to negative.

Specifically, the numerical input is number of days before or after an event something should happen, where the Dropdown switches between Before & After and then the Input is number of days.

But I don’t actually know how to use the Dropdown to change the inputted number from positive to negative. Can anyone help? I’m guessing I somehow use the Dropdown to change the State of the Numerical input…

Use a condition. If Dropdown is Days Before, 4(number field)*-1

Would I be applying the Conditional to the Input field?

This topic was automatically closed after 70 days. New replies are no longer allowed.