Skip to main content
Question

Make a command button enabled based on a custom field value in MWO Service Eng


Forum|alt.badge.img+6

How to make a command button (Complete Button) enable/visible based in custom field value

Ex: Enable ‘Complete’ button if the custom field value is not null.

 

 

11 replies

Alexander Heinze
Superhero (Employee)
Forum|alt.badge.img+23

Here’s an example:

 


Forum|alt.badge.img+6
Alexander Heinze wrote:

Here’s an example:

 

Thank you Alex.

We already tried this, and it didn’t work. We used it in the ‘WORK TASK DETAIL COMPLETE ASSIGNMENT COMMAND.’

 

 


Alexander Heinze
Superhero (Employee)
Forum|alt.badge.img+23

Can you paste your complete Enabled and Visible conditions? Your screenshot doesn’t show anything related to the custom field. 

What version are you on, btw? Conditionally enabling controls was only added recently (I think in 24R1).

Configurations for Mobile - Technical Documentation For IFS Cloud

 


Forum|alt.badge.img+6
Alexander Heinze wrote:

Can you paste your complete Enabled and Visible conditions? Your screenshot doesn’t show anything related to the custom field. 

What version are you on, btw? Conditionally enabling controls was only added recently (I think in 24R1).

Configurations for Mobile - Technical Documentation For IFS Cloud

 

Thank you for the information.

We are on 23R2

Below is the condition.

 

 


Alexander Heinze
Superhero (Employee)
Forum|alt.badge.img+23

Pretty sure 23R2 does not yet support that. ​@Rukmal Fernando do you remember when conditionally enabling a command was introduced? I thought it was 24R1. 


Rukmal Fernando
Superhero (Employee)
Forum|alt.badge.img+16
  • Superhero (Employee)
  • 381 replies
  • February 17, 2025

@Alexander Heinze, ​@Rasmika Navaratne Conditional Commands was fully validated and is officially supported from 24R1. However, the conditional syntax was already available in 23R2, so I would expect it to work in 23R2 as well, even if not under full support terms.

Note that the value you enter into your custom field must be saved before it reflects on your command. Note also that the Complete command you showed is part of the WorkTaskDetail page which is connected to the JtExecutionInstance Entity, so your CF needs to be present in JtExecutionInstance - the Enabled expression from your screenshot is syntactically correct assuming this is the case.

Best regards,

Rukmal


Forum|alt.badge.img+6
Rukmal Fernando wrote:

@Alexander Heinze, ​@Rasmika Navaratne Conditional Commands was fully validated and is officially supported from 24R1. However, the conditional syntax was already available in 23R2, so I would expect it to work in 23R2 as well, even if not under full support terms.

Note that the value you enter into your custom field must be saved before it reflects on your command. Note also that the Complete command you showed is part of the WorkTaskDetail page which is connected to the JtExecutionInstance Entity, so your CF needs to be present in JtExecutionInstance - the Enabled expression from your screenshot is syntactically correct assuming this is the case.

Best regards,

Rukmal

Thank you ​@Rukmal Fernando  for the reply. I added the custom field to JTExecutionInstance as well but it didn’t work


Rukmal Fernando
Superhero (Employee)
Forum|alt.badge.img+16
  • Superhero (Employee)
  • 381 replies
  • February 17, 2025

@Rasmika Navaratne can you add some screenshots of your Entity Configuration? We might be able to make sense of what’s going on.

Best regards,

Rukmal


Forum|alt.badge.img+6

Hi ​@Rukmal Fernando ,

Sorry for the delay. Please refer to the attached document.

 

Thank you.


Forum|alt.badge.img+6
Rasmika Navaratne wrote:

Hi ​@Rukmal Fernando ,

Sorry for the delay. Please refer to the attached document.

 

Thank you.

Hi ​@Rukmal Fernando , Hope you’re doing well; just wanted to check with you if you have had any chance to look at the configuration.


Rukmal Fernando
Superhero (Employee)
Forum|alt.badge.img+16
  • Superhero (Employee)
  • 381 replies
  • February 26, 2025

@Rasmika Navaratne I’m afraid not, as I’ve had to prioritize some other efforts. Will do my best to take a look when I get a chance.

Best regards,

Rukmal


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