Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to click on container to fill with image then click again to erase?

Featured Replies

 
 

I need to make a script that will fill a container field with an image but to make the container field clear again when I click on the container field again. The image toggles when clicked.. How can this be done the best way? Thank you

Scripts steps SetField and Clear 

  • Author

I have no understanding of those .. I want to click on the field and get an image in the field, I want to click again on the fleld and get it cleared. That is all I posted a container field that i would like to click on with a picture in it.  I want it to repeatedly do the toggling. 

container burtton.fmp12.zip

  • Author
 
 

Thats perfect.  Now one other thing... Is it possible in some way to lock it when I need to. I want to be able to toggle the picture but when it is the way I want the record to somehow lock it from editing  Or TOGGLing any more?

You could add a global field which when checked will active the script. 

Another alternative, which i would prefer would be to make your script active only if a modifier key is held down when toggling.

We can display a checkbox, which will set a flag field, and exit script if the flag field is set.

check attached file.

container burtton 2.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.