narrow-magazine-18722
07/02/2023, 10:24 PMhas_country is false (like a new record)
It seems like this pre-made toggle method would not work & do the opposite of the intended effect for an existing record where has_country is already true? Since there is no conditional initial hidden value on country?
I can't figure out how to conditionally apply the hidden css based on the has_country value on rendering the formlemon-wall-20836
07/03/2023, 4:10 PMlemon-wall-20836
07/03/2023, 4:11 PMvisible
if you just want to have a value passed on form submission -> you can use the hidden field
if you just want it to be in the dom but invisible -> use your approach with adding a hidden classnarrow-magazine-18722
07/03/2023, 4:29 PMlemon-wall-20836
07/03/2023, 4:31 PMlemon-wall-20836
07/03/2023, 4:31 PMlemon-wall-20836
07/03/2023, 4:32 PMlemon-wall-20836
07/03/2023, 4:32 PMlemon-wall-20836
07/03/2023, 4:32 PMlemon-wall-20836
07/03/2023, 4:34 PM