I’m stumped. I have a user input page and a display page which include checkboxes that are connected to a dataset. When the dataset was set to read only for the display page, I could never get the checks in the check box easily visible. The only workaround I could find to make the checks readable was to make the dataset read/write and cover the checkboxes with a container box. If I arranged the checks so they were in the back and the box was in the front, the workaround works just fine in desktop mode - you can see the checks but cannot actually change their values because the box blocks the user from actually clicking on the boxes. BUT… in mobile mode, for some reason this is not working. It’s quirky because sometimes the arrangement doesn’t hold, but even when it does hold, you can still click the checkboxes which writes to the dataset. How can I stop this behavior and get the result I want - no access to the checkboxes in mobile - while still keeping the dataset read/write for visibility? OR is there a better way to make the checkbox values easily readable when the dataset is in read only mode?
Well, I found a workaround for the workaround. I’m using the following code for the checkboxes. I hate the look of the disabled box, but it is only visible until they move on and click on another row, when the entire group of checkboxes reset. I can use this for now, but if anyone has a better idea, please let me know.
export function checkbox1_mouseIn(event, $w) {
//Add your code for this event here:
if ( $w(“#checkbox1”).enabled ) {
$w(“#checkbox1”).disable();
}
}