Solved

Formatting Field Via Script FM

Posted on 2013-12-10
1
321 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
ID: 39710529
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 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

15 Experts available now in Live!

Get 1:1 Help Now