Jump to content

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

Recommended Posts

Posted

I am trying to use FieldStyle to change a field to bold based on if another field has an entry.

When I use FieldStyle in a calculation, I keeping getting a window popping up telling me that it cannot find my field entry and then highlights under FieldStyle (Database)

- If I place quote marks around it, the program then says it cannot find the (layout), and so on.

- Placing quote marks around each entry eliminates this message ("Database","Layout", "Field") but in the end it doesn't do anything.

*I am filling these fields in with actual information and my naming is correct.

Either this isn't the proper use of FieldStyle or I am doing something wrong or all of the above.

If anyone has an answer to my problem of making the field bold I would appreciate it.

Posted

It doesn't change the field. It returns how the field is formatted.

Below is the Filemaker Help Text:

FieldStyle (dbname, layoutname, fieldname)

Parameters

dbname - the name of a database that is open on your computer, including any that are opened as a guest

layoutname - the name of a layout in the specified database

fieldname - the name of a field on the specified layout

Important See Design functions for important information about these parameters.

Data type returned

TEXT

Description

Returns the field formatting applied to the specified field on the specified layout.

If the field is formatted as FieldStyle returns

A standard field Standard

A standard field with a vertical scroll bar Scrolling

A pop-up list Popuplist

A pop-up menu Popupmenu

Checkboxes Checkbox

Radio buttons RadioButton

Additionally, if the field has a value list associated with it, FieldStyle returns the name of the value list.

Example

If the Current Customer field is formatted as a radio button and is associated with the value list Yes/No List on the Data Entry layout in the Customers database, FieldStyle ("Customers", "Data Entry", "Current Customer") returns RadioButton Yes/No List.

This topic is 8381 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.