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

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

Recommended Posts

Posted

Can I use scripts to control the properties and presence/absence of layout elements such as buttons, fields and text? For example say I needed to have "SendReminder" button to appear only when overDue>1. If overDue = 0 the button should not appear the layout.

How would I go about that?

-ilya

Posted

There are a couple of demos here around about this feature.

It's called "Visibility" and was introduced (I just hope I'm not wrong) by J.M. OSBORNE.

In the attachment section, at the entrance, check for an attachment called "hide button" or just make a search on "visibility" here or at FMFiles.com.

Posted

The visibility discussiong is very informative. Is there way to control properties of layout elements? For example would it be pissible to change the color of type based on the value of a field?

Posted

Absolutely,

This would be done by a calculation based upon a global container field.

Put your color graphics in a container g_container.

Then the calc is c_showcontainer= Case(your value>number, GetRepetition(Container,1),"")

You could show as many colors as you wish, if you had more than one condition.

Paid, partly paid, Not Paid is the classic example.

Then, c_showcontainer = Case(value =Not Paid, GetRepetion(Container,1), value =Partly Paid, GetRepetion(Container,2), "")

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