DanG. Posted October 29, 2007 Share Posted October 29, 2007 Is there a way to *automatically* change the text on a button? My preference would be (example) If Field1 = Male, button text displays "Change to Female" If Field 1 = Female, button text displays "Change to Male" Changing (field1) and the button text each time it is clicked. I've actually got several choices I'd like to to cycle through, but this would get me started. Thanks! Daniel Link to comment Share on other sites More sharing options...
sbg2 Posted October 29, 2007 Share Posted October 29, 2007 Create an unstored calculation field to use as the button text. Case(Field1 = "Male"; "Change to Female"; Field1 = "Female"; "Change to Male") Your button should be set to change the Field1 value and the new calc field should automatically update. Link to comment Share on other sites More sharing options...
Lee Smith Posted October 29, 2007 Share Posted October 29, 2007 I made a quick demo file that uses the Script, and a auto enter calculation for the button text. HTH Lee DanGchangeText.fp7.zip Link to comment Share on other sites More sharing options...
Stuart Taylor Posted October 29, 2007 Share Posted October 29, 2007 (edited) Here is a mod inspired by something i saw Comment do a while ago. Make sure you look at: Format > Number > Boolean And the button is no longer defined via script maker as it only uses the Set Field step. I love this method it is so slick. DanGchangeTextMod.fp7_2.zip Edited October 29, 2007 by Guest Link to comment Share on other sites More sharing options...
comment Posted October 29, 2007 Share Posted October 29, 2007 If it's a Boolean field, you don't need any extra fields. Cycling through several values can be a bit more complex. CycleVL.fp7.zip Link to comment Share on other sites More sharing options...
DanG. Posted October 10, 2008 Author Share Posted October 10, 2008 Stuart, this was VERY helpful (and an interesting way to do it too)! Thanks!! Link to comment Share on other sites More sharing options...
mr_vodka Posted October 10, 2008 Share Posted October 10, 2008 lol. I just realized that this response was almost a year after the orig reply and file post. Link to comment Share on other sites More sharing options...
Newbies MrMLK Posted May 31, 2013 Newbies Share Posted May 31, 2013 If it's a Boolean field, you don't need any extra fields. Cycling through several values can be a bit more complex. I realize that this is seven years later, and I don't know if anyone is still around, but I have downloaded this example, and I think I understand how it works, except that I can't figure out how exactly the text on the button is being changed. Any help would be appreciated. Thanks. Link to comment Share on other sites More sharing options...
Newbies MrMLK Posted May 31, 2013 Newbies Share Posted May 31, 2013 I realize that this is seven years later, and I don't know if anyone is still around, but I have downloaded this example, and I think I understand how it works, except that I can't figure out how exactly the text on the button is being changed. Any help would be appreciated. Thanks. Oops, I am an idiot. I just figured it out. Sorry for reviving an old thread, but thanks for the help with the original posts. Link to comment Share on other sites More sharing options...
Newbies BgusmaoKM Posted April 24, 2015 Newbies Share Posted April 24, 2015 Hi, why none of those files i downloaded are opening, giving errors. =-( Anyone could check or post good ones if it is really damaged. Thanks! Link to comment Share on other sites More sharing options...
comment Posted April 24, 2015 Share Posted April 24, 2015 Hi, why none of those files i downloaded are opening, giving errors. =-( Anyone could check or post good ones if it is really damaged. Thanks! Post your problem here: http://fmforums.com/forums/forum/73-fm-forums-feedback-site-news/ Link to comment Share on other sites More sharing options...
Lee Smith Posted April 24, 2015 Share Posted April 24, 2015 The recent upgrade of our Forums's software has broken the links to these older posts. I have copies of most of these older posts, but I’m curious as to which ones you feel would still be pertinent after 7 years and were created with FileMaker Pro version 8.5 or 9 Link to comment Share on other sites More sharing options...
Newbies BgusmaoKM Posted April 24, 2015 Newbies Share Posted April 24, 2015 Hi Lee, thanks, I will post in future problems like that in the appropriated place. In fact I wanted to find a solution to those toggle on/off button that I didnt see the DATE those files are from. Do you have any update ones? I didnt find any here. All stuff on Internet seems so complicated. I am new to all of it but I know it cant be that hard. I even saw modern solutions like toggle slide buttons but nothing works to me. Thanks for being helpful ! Link to comment Share on other sites More sharing options...
Lee Smith Posted April 24, 2015 Share Posted April 24, 2015 You have some great tools to accomplish these things now, back when 8 - 9 were the latest versions, it required a lot of workarounds IMHO, you need to learn more about the functions and features in your version of FileMaker, and would benefit from enrolling in a course or two. You will find videos on FileMaker in a lot of places, including lynda.com (free 1 month trial offering classes directed at the essentials and advanced. Richard Carlton, one of our sponsors has a training package here http://learningfilemaker.com which costs about $40. US FileMaker Inc provides videos on some of the tools and a training series which is free for subscribers IIRC https://community.filemaker.com You can also find a lot of videos on the tools at YouTube. Search for FileMaker and the tool, function, etc you want to see. Link to comment Share on other sites More sharing options...
comment Posted April 24, 2015 Share Posted April 24, 2015 I’m curious as to which ones you feel would still be pertinent after 7 years and were created with FileMaker Pro version 8.5 or 9 With regard to the topics covered in this thread, namely (1) toggling a Boolean filed and (2) cycling through a value list, nothing has changed. Link to comment Share on other sites More sharing options...
Lee Smith Posted April 24, 2015 Share Posted April 24, 2015 In regards to the need to toggling a field, it can be done using the inspector. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 3424 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now