Jump to content

Web Viewer & 'Hide Object When'

Recommended Posts

I have a nifty little backgammon quizzing solution set up for FMGo that shows images of game positions and you tap on the image container to view the solution  below. This works by toggling a simple text field from empty to 'Show' when you tap the Problem image.   I've used the calculation  IsEmpty ( Positions::z_SolutionToggle ) in the 'Hide Object When' option in the inspector for three items on the layout:  A Text Field giving the simple answer, a Container Field with a picture of the proper solution, and a Web Viewer for displaying comments about the proper play. Tapping the Problem image toggles the control field empty again, hiding the 3 items.  I have an 'On Record Load' script trigger set up to clear the toggle field so when you go to the next problem the answers are hidden.

All three items work just fine in FMP my desktop.  On the iPad in Go, however, the Web Viewer is glitching in a particular way.  The tapping to show/hide works fine - - but if I have the answers revealed and tap for the Next problem, the web viewer fails to Hide itself, while the other two objects hide  as expected.  The data in the web-viewer *does* update to the text for the fresh problem -- it just doesn't hide itself.  The other tw items vanish, but it stays there, displaying the new comments.  Tapping the Problem pictures toggles the other two items into view as planned, and another tap hides all three, and moving to the next problem, they all remain hidden as intended, so it is only when going frrom the Revealed state to the next Hidden state that the web viewer falls down.

The contents of the web viewer are drawn from a text field using this data URL I gleaned from a thread where web-viewers were offered as an alternative to fields with scrollbars in GO because scrollbars don't work so well in GO:

"data:text/html," & "<html><style>*{ font-family: arial, verdana, sans-serif; font-size: 16px;}</style><body>" & 

Substitute ( GetAsCSS ( Positions::Comments ) ; "¶" ; "<br />" )

& "</body></html>"

I have the 'Allow Interaction' and 'Automatically encode URL' boxes ticked.

Any suggestions for fixing this bug?  Thanks!


Share this post

Link to post
Share on other sites

Scrolling doesn't do well with containers on FMgo.

Text works a little bit better with scrolling, so I would put the text back in the field. Or use a popover if the text is too big. Have it beside the text field. It would remove the need to scroll, which unless the whole layout is scrolling, may not be a great experience. (touch gestures are a bit more finicky than a mouse/trackpad)

Just a thought

Share this post

Link to post
Share on other sites

Thanks for the suggestion -- but to clarify, I'm not trying to scroll with a Container field, it's a web-viewer, and it behaves very nicely in that regard.  It's just this selective  'Hide When' glitch that has me puzzled here.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By adyf
      I've just upgraded to Filemaker Pro 17 and Filemaker Go 17. Unfortunately I now get 'The Host's Capacity Was Exceeded' error message (attached) when trying to open a file on my iPad that is hosted on my MacBook. I'm the only user of this file, so it seems strange and I've never had the error with previous Filemaker versions. Has anyone any ideas please?
      Edited to add that the file opens with Filemaker Go 17 when it is open on the MacBook with Filemaker Pro 16, therefore could this be a bug in Filemaker Pro 17?

    • By Arnold Hooton
      I’m trying to retrieve a street address after I’ve used the ‘location’ function to access the gps coordinates. This may be simple but all I’m stumped. Maybe there’s a beginners tutorial on how to use url’s To get what I need. 
    • By VirtualBob
      I'm using FileMaker 12 but want to get a version that syncs via free iCloud or Dropbox type service (you can only do it manually in FM12). What is the earliest version that does this? Its for personal use and I don't have much money so I just want to get a cheap older version of FM but want it to sync across all my devices.
    • By Ail5urfer
      I have some pictures that are not displaying in the Go version (but all is ok on macOS FileMaker Pro 16).
      I usually une PNG, transparent or not.
      Any idea ?
      Thanks !

    • By remoran
      FM go 17 does not see any files running on FM Cloud 17/AWS even though said files are running, an authenticated user is accessing the files via FM17 and WebDirect works without issue. Any help on this would be terrific as FM Cloud 17 is running, thank god, without problems.
  • Who Viewed the Topic

    1 member has viewed this topic:

Important Information

By using this site, you agree to our Terms of Use.