Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7928 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I currently have a row of check boxes each representing a task. (I.e. fold, trim, box etc.) When a user clicks on these boxes and exits the record a calculation field is filled with the first letter of all valid check boxes. It works fine...however...

Is there a way to have a row of buttons instead where the user would click on the button (trim, box, fold) and the first letter would popluate a field. The user could click on multiple buttons and the first letter of all clicked buttons would fill the field. Conversely, if the user clicks a second time on one of the buttons, it would remove the letter from the calc field..

make sense?

thanks

Posted

You can create a set of light coloured buttons, and then overlay them with a container field which is attached to a toggle script, which sets the letter and also sets the container field to a dark colour to show it has been selected. The toggle script would be something like:

If [Trim = "T"]

. Set Field [TrimLetter,""]

. Set Field [Trim Container,""]

Else

. Set Field [TrimLetter, "T"]

. Set Field [Trim Container,g_DarkColour]

End If

This will giver the appearance of check buttons, but it gives you added flexibility because you can expand these scripts to include an overall logic - like, you can't box something until it has been folded - for example.

See attached file for a sample of how it looks. This is a file containing a screen dump only. It is from a solution where the users clicked on the buttons to decide what information and graphics to show on a dinner table place card. I can provide a cut down version of the actual file (so it isn't too big) if anyone is interested.

Your overall calc field for the letters would then become a concatenated field of:

=Trim Letter & Box Letter & Fold Letter etc

Buttons.fp5.zip

Posted

You may have answered my question... but I don't think I was clear..

The best way to describe was I am looking for would be like the following...

If I had buttons marked A, B, C, D. and a container or text field named "data group". I want the user to click on the a button and it would add "A" to data group. If the user then clicked on button "B" it would be added. Sort of like a typewriter... as the user clicks on a button it adds the text to the field. I then want the user to have the ability to click on the same button and it erases (removes that letter while leaving the others..

thanks

Posted

I have attached a demo file which does it. It contains 2 sets of scripting options to cover the 2 possible outputs options you might want. It also contains a "clear all buttons" script which just makes it easier for you to play with the demo.

One will produce the DateGroup list "ABCD" always in alphabetical order, and the other will produce the DataGroup text in the order in which you clicked the buttons "BDCA". You should click on the "Clear All Buttons" button before changing from the "ABCD" to the "BCDA" sets of buttons.

ForCrazyBake.fp5.zip

This topic is 7928 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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