Process flow visibility based on conditions of a field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello Team,
I have a requirement to hide certain stages in process flow.
For example:
There is a field called 'type'.
If type is software only draft, scoping, Testing Qa, Closed stages should be visible on the form.
if type is hardware then only Draft, Awaiting approval, Testing, Deployment stages should be visible on form.
How to implement this.
Currently we used process flow to build it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @Sriram34 ,
Refer this :
How to Hide Process flow based on condition
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
52m ago
Hello @Sriram34 ,
I tried your usecase on my pdi , so it requires onload client script to hide and show ;
function onLoad() {
var isFlagTrue = g_form.getValue('u_inc_flag');
function hideStage(label) {
$j("li a, ol.process_flow li, ul.process_flow li").filter(function() {
return $j(this).text().trim() === label;
}).closest("li").remove();
}
setTimeout(function() {
if (isFlagTrue === 'true') {
// Hide Hardware-only stages (keeps Draft, Scoping, Testing Qa, Closed)
hideStage('Awaiting approval');
hideStage('Testing');
hideStage('Deployment');
} else if (isFlagTrue === 'false') {
// Hide Software-only stages (keeps Draft, Awaiting approval, Testing, Deployment)
hideStage('Scoping');
hideStage('Testing Qa');
hideStage('Closed');
}
var $flowList = $j("ol.process_flow, ul.process_flow, .process-flow-container");
$flowList.css({
"overflow-x": "hidden",
"width": "100%"
});
$flowList.parent().css("overflow-x", "hidden");
}, 300);
}
Here i hide and show on basis of inc flag field .
If this helps you then mark it as helpful and accept as solution .
Regards,
Aditya