Conditionally disable a button
-
- New User
- Posts: 4
- Joined: Tue Feb 09, 2016 11:58 am
- First Name: John
- Last Name: Oakes
- Company Name: Swift Transportation
- Phone: 901-344-4267
- Address 1: 1940 E Brooks Rd.
- City: Memphis
- State / Province: Tennessee
- Zip / Postal Code: 38116
- Country: United States
- Contact:
Conditionally disable a button
I have an authority program that my profound program calls and it returns a value of Y or N that is stored in the profound program depending on the users authority. I want to be able to disable a button if a N is returned, is this possible? I don't want to display a message stating that they don't have that authority and would prefer that the button is disabled.
- Emily
- Profound Logic Staff Member
- Posts: 89
- Joined: Tue Jun 21, 2016 8:30 am
- First Name: Emily
- Last Name: Seage
- Company Name: Profound Logic
- Contact:
Re: Conditionally disable a button
Hi John,
There is a 'disabled' property for buttons that you could use for this. This property is bindable, so you could bind this property to an indicator to use in your program. When 'N' is returned in your program, you could set the indicator bound to the 'disabled' property to 'on' to disable the button. You could also use the 'visibility' property in the same way if you didn't want the button to be visible at all for users who do not have the proper authority.
I hope that this helps!
There is a 'disabled' property for buttons that you could use for this. This property is bindable, so you could bind this property to an indicator to use in your program. When 'N' is returned in your program, you could set the indicator bound to the 'disabled' property to 'on' to disable the button. You could also use the 'visibility' property in the same way if you didn't want the button to be visible at all for users who do not have the proper authority.
I hope that this helps!
Emily Seage
Support Team Lead
Support Team Lead
-
- New User
- Posts: 4
- Joined: Tue Feb 09, 2016 11:58 am
- First Name: John
- Last Name: Oakes
- Company Name: Swift Transportation
- Phone: 901-344-4267
- Address 1: 1940 E Brooks Rd.
- City: Memphis
- State / Province: Tennessee
- Zip / Postal Code: 38116
- Country: United States
- Contact:
Re: Conditionally disable a button
That works fantastically thanks so much
Who is online
Users browsing this forum: No registered users and 3 guests