Hi @donniesilalahi,
As for your first question. Toggle & switch components work in a way, that they change the value of the True/False property in the collection immediately. So you can’t use them without an already created record in the collection. (just a side note - if the record is changes by some other way, toggle state is updated immediately, but switch can’t do it).
So there are some ways you could use toggles in custom form:
- create a record on the previous screen, and then update the values of the record on this form submission screen. Then you can attach toggles directly to the record. Downside here is that you have to delete the record if user goes back (that’s easy) or if user decided to close the app (that’s more cumbersome).
- create a temporary/auxillary properties in Users collection (say, TMPSchedule and TMPpublish). Update them to False before entering the form screen. Attach toggles to these temp properties.Then, attach an action to Form Submit button, so that it creates a new record in the forms collection. And copy the values from these LoggedInUser->TMPSchedule and LoggedInUser->TMPpublish to the appropriate records in the Forms collection.
Upside - you don’t get problems when user leaves the screen. Downside - your Users collection have additional properties, which might cause confusion to someone who don’t know the app. - Create a toggle imitation by using this trick: Small hints: Toggle Imitation
Downside - you can’t create switch imitation.
As for your second question - I don’t quite get the idea, what would you like to achieve (from user’s perspective)?