August 12, 201114 yr No it is not possible to resize the button on a layout. It is possible by using WebViewer tool, using html & js.
August 12, 201114 yr It is possible by using WebViewer tool, using html & js. And what exactly will the button do?
August 20, 201114 yr 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.
August 20, 201114 yr 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?
August 20, 201114 yr Have the script change to a second layout that is identical to the first except that it has a larger button.
August 23, 201114 yr This is the situation. not an answer. Please discuss it briefly, whether it is possible or not. Please let me know.
August 23, 201114 yr 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.
August 23, 201114 yr 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.
August 23, 201114 yr Create graphics of the different sized buttons Note that this will not resize the button - i.e. the clickable area.
August 24, 201114 yr 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