Jump 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.

Featured Replies

how can we resize the button in the same layout through the script

Buttons cannot be resized by script.

What are you trying to do?

No it is not possible to resize the button on a layout. It is possible by using WebViewer tool, using html & js.

It is possible by using WebViewer tool, using html & js.

And what exactly will the button do?

  • 2 weeks later...

Button is showing the status of the inventory. According to stage, the buttons will resize itself.

Suppose it is having two stage, 'Incomplete and Complete'. Then we will have two buttons named Complete and Incomplete.

if the user will click in Complete the stage will be changed to Complete, and its size will be changed and

When user click on Incomplete the stage will be changed to Incomplete and its size will be changed.

Button is showing the status of the inventory. According to stage, the buttons will resize itself.

Suppose it is having two stage, 'Incomplete and Complete'. Then we will have two buttons named Complete and Incomplete.

if the user will click in Complete the stage will be changed to Complete, and its size will be changed and

When user click on Incomplete the stage will be changed to Incomplete and its size will be changed.

Is this a question or an answer?

Have the script change to a second layout that is identical to the first except that it has a larger button.

This is the situation. not an answer. Please discuss it briefly, whether it is possible or not. Please let me know.

It's not possible to resize a button. It is possible to show another button, either on another layout or in a different tab panel. It is also possible to resize/change the text of the button, using conditional formatting.

It's not possible to use a HTML button to modify a Filemaker field or variable - at least not without a plugin.

Create graphics of the different sized buttons you want and place them in a global repeating container field. On your layout create a different container field. In your script, Set Field(DisplayContainerField; getRepetition(RepeatingContainerField;<n>)). <n> should be the repetition number of the graphic to display.

Create graphics of the different sized buttons

Note that this will not resize the button - i.e. the clickable area.

Reading this thread I'm reminded of this quote from Albert Einstein:

Make everything as simple as possible, but not simpler.

In the past I have occasionally used some pretty wild workarounds to accomplish some "nice to have" feature and almost without exception I have come to regret the needless complexity that I built into the system. My suggestion is that if you are going to use some unintuitive methods to accomplish something, make sure you are accomplishing something that is truly necessary. Get some bang for your buck. And for goodness sake, document what you did liberally so that two years later you can figure out what's going on without spending a day just trying to understand what you did.

Create an account or sign in to comment

Important Information

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

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.