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

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

Recommended Posts

Posted

hi there,

With the example file i have attatch, i have some question about the field or button entry. In this case, i have set 3 field with 1 button, the button only will come out when the 3 field is not empty. It just put the button into the portal with a self-relationship. Now i need to set another button in the same position which come with no finction and design with engrave(i have put it in the file that i attatch) , so that it will look like the button become engrave while there have some field empty, and when you click, it will no perform any action even change color(like normal we click a button). After we fill in all the field, the button will become emboss and can be click and perform certain script.

Another question is can it be done if this situation change to field, one field allow entry and another field do not allow entry. Is also in the same position. If it can be done, so i can let user to edit and view in the same layout, no need to set 2 layout.

example.zip

Posted

Hi,

have added a couple of bits to your file and am reposting here.

Create a global container field with 2 Repetitions to hold the on and off state for the button

Then Create a calc with a result of container that is

Case(IsEmpty(text) or IsEmpty(name) or IsEmpty(no), GetRepetition(zg_Container,1), GetRepetition(zg_Container,2))

And your script checks if any field is empty just exit the script, else show your message

example.zip

Posted

hi Andy,

thank you for your reply, i have try the solution, it also can be done, but when i click the button, it still will run the script then check the condition, is that any way to totally don't neet to run the script, that's mean if condition is false, the button cannot be click, even chane the color(invert color).

The other question is if this time change to field, let's say i have another field call "Temp", if the condition true, i will let user entry, else the field will not allow user to entry.

Regards

Henry

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