Skip to main content
Solved

How to hide or disable an Button with condition


Hi All,

Purpose: the button UPDATE IN on Shipment SO302000 is only displayed or enabled when the Shipment Type = Transfer or Customer Order Nbr = EQ.

I have created a condition.

 

And Add that condition into Action UPDATE IN

I tried it with the option Hidden and Disabled but both options do not work.

With the above condition, I have seen the button UPDATE IN for all Shipment Types (Shipment and Transfer)

Do you have some idea for this?

 

 

 

Best answer by RohitRattan88

@chidao 

I think following should work as long as there are no more custom ShipmentType(other than system Transfer and Shipment):

Codition

See the result below:

Transfer Shipment
Shipment no EQ
Shipment EQ

Hopefully it helps

View original
Did this topic help you find an answer to your question?

10 replies

palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 39 replies
  • September 28, 2023

Hi @chidao, have you tried publish the package or publish with clean up? I tried using the conditions above and it working well on my end. See snipped below.

 

 


  • Author
  • 111 replies
  • September 28, 2023

@palbores My expectation is that the button is only displayed if Shipment Type = Transfer or Customer Order Nbr = EQ. 

So, I set a condition to hide it if the Shipment type does not equal Transfer or the customer order nbr does not equal EQ

But in my test case, Button UPDATE IN is hidden for all cases.


palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 39 replies
  • September 28, 2023
chidao wrote:

@palbores My expectation is that the button is only displayed if Shipment Type = Transfer or Customer Order Nbr = EQ. 

So, I set a condition to hide it if the Shipment type does not equal Transfer or the customer order nbr does not equal EQ

But in my test case, Button UPDATE IN is hidden for all cases.

I explored something, can you try the condition below.

Conditions
Transfer
Shipment

 


  • Author
  • 111 replies
  • September 28, 2023

Hi @palbores I have tried your condition, but it does not work. The button disappears when Customer Order Nbr = EQ (expected result: display)

 

However, with your exploration, I have updated the condition and see it works well in my cases. Below is a screenshot of the applied conditions.

 

 


palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 39 replies
  • September 28, 2023

@chidao, you can use this short condition below.
 

Conditions
Shipment Type with Customer Order: EQ
Shipment Type with No/Empty Customer Order
Transfer Type

 


  • Author
  • 111 replies
  • September 28, 2023

@palbores I try that condition and the button disappears when Customer Order Nbr = EQ (expected to be display)

 


palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 39 replies
  • September 28, 2023
chidao wrote:

@palbores I try that condition and the button disappears when Customer Order Nbr = EQ (expected to be display)

 

Maybe your EQ have a space at the last in it? try to clear cache your browser by doing the Ctrl + F5 keys.


darylbowman
Captain II
Forum|alt.badge.img+13

clear cache your browser by doing the Ctrl + F5 keys

I believe the page recache is Shift + F5 


RohitRattan88
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Employee
  • 245 replies
  • Answer
  • September 28, 2023

@chidao 

I think following should work as long as there are no more custom ShipmentType(other than system Transfer and Shipment):

Codition

See the result below:

Transfer Shipment
Shipment no EQ
Shipment EQ

Hopefully it helps


  • Author
  • 111 replies
  • November 16, 2023

Thanks @RohitRattan88 when I apply above condition to Hide, it works well


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings