#Checkbox setting variable

2 messages · Page 1 of 1 (latest)

pine ridge
#

I'm looking to use a Mantine Checkbox as a way of setting a RedwoodJS form input. It seems the easiest way would be if the checkbox is checked it modifies the default value of the text field which is set to a variable.

Any suggestions or code examples that could lead me to the right path? I'm right now trying to pass it the variable I want to update as a string within the component props, and then onChange modify that variable.

kindred bramble