In the Screen flow issue to handle the bread scrum senario to dispaly the message
I have a screen flow which includes 5 screens with the screen flow. I need to display the message in the last screen(i.e. Fifth screen) and that message I need to display in the page level(harness level) ,to display the message I am using the post activity of the just before screen(forth screen) so here if I will run the flow by click on next button my message will display in the last screen as per the implementation.
But issue here is when we will not use the next button and directly click on the last screen(5th screen) by skipping the 4th screen we are not able to display the message.
(Note:1. Initially to resolve this issue I used utility for the particular assignment but as per best practice we cannot keep utility everywhere because I need to display this message in 2 screen flows, so I skip that option
2.I tried with the pre activity of the last screen where I need to display but for the 1st occurrence message is not appearing after refresh we are able to see the message that is also issue so I skipped)
If i want to revisit the previous screen i need to use the back button then i will not get the message in the previous screens but if I will use the bread scrum by skipping the 4th screen I am able to see the messages in the other previous screens also which is not needed.
Solution provided by you I tried to resolve the issue but issue is not getting resolved and in this scenario we need to always use the Next button to move forward which will restrict the user to visit all the screen which is not the user friendly behavior , so please suggest other alternate to resolve the issue.
Or is it the enhancement for the breadcrumb trail which will come up with some other option we will have in future for the screen flow to handle this kind of issues ?
i believe the suggestion shared so far are the possible options to achieve this requirement.
May I know whether you can consider some alternate approach to display the message ?
I mean, if your aim is to show some message to end user which you again want to remove on moving to previous screen, and this message is anyway not a kind of validaiton error message, then why not adding just a section with your error message in your main section and display it to end user ?
The senario is ,I have to display the information message in the last screen in the screen flow which is in the harness level(we are using the framework to display the information message so i cannot use any separate section to display my message).
Can anyone tell me how to work on framework to dispaly the message in the screen for the particular screen only it will not effect to the other screen if we go back or next (As the concern raised by me long back for this).
Just give me a suggestion if the senario is like in the screen flow we have 5 screens and we need to display the message in the 5th screen only not on the any other screen in harness level,ir will not effect if we will follow the bread crumb or we will use next button or we can go back in all the situation i will only see the message in the 5 screen.
So how need to put a logic for this please suggest i use that alternate to reslove the issue as per suggestion.
Becasue whatever i am doing in that senario suggestion provided by you people i am not able to get the proper results so provide your suggestion how can we implement that to reslove this issue.
On your fifth screen ( flow action ) , you must be using a section. Say section5
Put your error message section inside this section5 . Typically @baseclass errormessages sections are used to display error messages. So you can embed it only in the last section to make sure that the errors are displayed only when control reaches there.
Add a section or layout containing the message in the section of the 5th screen and make it visible depending on a flag which you will set in the pre activity of 5th flow action and reset it in its post activity.