Jump to content
Sign in to follow this  
sfgiantsjo

Script to change font of fields?

Recommended Posts

I need four separate fields to change fonts when "no" is chosen in a value list in a fifth field. Is that possible? Basically I need the other fields to become bold, but using Arial Black vs. Arial works better than bold does.

Share this post


Link to post
Share on other sites

Since you are on a Pre 9 version...

Try an auto-entry calc on the four fields. So for example, on FieldA:

Case ( YourSelection = "no"; TextStyleAdd ( FieldA; Bold; Evaluate ( Quote ( FieldA ) ) )

Make sure that the 'Do not replace field contents' is unchecked.

Share this post


Link to post
Share on other sites

I think they need to change fonts

Case ( YourSelection = "no"; TextFont ( FieldA ; "Arial Black" ) )

Share this post


Link to post
Share on other sites

Ah yes. I dont know why I read that they wanted Bold, when they actually said they didnt want bold. ???

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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