Can a toggle be locked after it’s been checked?

I use toggles to track whether a borrowed item has been returned. Among other things, checking the toggle also records the date an item was returned.

Once the toggle has been checked, I need it to be not possible to uncheck it.

Can this be done?

I know I can use visibility rules and a fake checkbox icon, but I also have several other visibility conditions on this screen, so I’m wondering if there’s a way to do it with a setting.

1 Like

there is no way that I know of to stop a toggle being clicked unless you cover it with something. I know you don’t want another visibility rule but it is very easy to cover the checkbox with a transparent rectangle that is only visible when the item’s returned? is checked. :woman_shrugging:

4 Likes

That’s a clever idea. Thank you.

1 Like

Addition to the @Hanan’s great idea!

Or maybe something like this? : toggle with a update action.mp4 - Google Drive

Another way is to build a custom toggle with two icons : custom toggle.mp4 - Google Drive

1 Like

I usually use what @Hanan proposed! But if you’re facing a problem with loading all visibility conditions on one screen, check this preloader component created by PargmaFlow

It will make your app so much faster!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.