Solved

Formatting Field Via Script FM

Posted on 2013-12-10
1
318 Views
Last Modified: 2013-12-23
I wanted to see if it is possible the following in Filemaker:
1. Copy/Paste formatting from one field to another.
2. Add a formatting toolbar to the top of a particular field.
0
Comment
Question by:PachecoPrimo
1 Comment
 
LVL 24

Accepted Solution

by:
Will Loving earned 500 total points
Comment Utility
In Layout Mode, you can copy the applied formatting for a field to another field, including Fill and Border by click on the the field that already formatted then clicking the "Format Painter" tool - a paintbrush icon at the end of the Layout tools - and then clicking on the field to be formatted. If you double-click on the Painter tool it will stay in the mode so you can click multiple objects.

In answer to you second question, there is no way to add a standard formatting toolbar above an individual field. However, you could do the following:

- Create a layout with just that field on it and use scripting to switch to that layout and turn on the Formatting toolbar in the Status area at the top of the screen. When done you can also turn off the Formatting toolbar via a script step.

- Add scripted buttons above the field that apply specific types of formatting using the Set Field() script step and the various TextFormatting functions. For example, if you want to apply Bold to the value in a field called "Price" in the PRoducts table it would look like this:

TextStyle( Products::Price ; bold )

To also make it Red, it might look like this:

TextColor( TextStyle( Products::Price ; bold ) ; RGB( 155 ; 00 ; 00 )

For details on these and other text formatting functions, see:

http://www.filemaker.com/11help/html/func_ref3.33.90.html
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now