30
Views
5
Comments
Flow
Question
Application Type
Reactive

Good morning!

What do these arrows mean?

I thought it meant that the flow allowed will be forward between those screens, but not...

I need to implement 2 conditions:

  1. avoid the user to go back to a previous screen;
  2. avoid the user to enter in a screen (PreInscricao in this example) without having entered in the first screen (RGPD in this example).

Is this possible in Outsystems?

Thanks!

2022-06-23 06-21-50
Siddharth Vyas

Hi,
1 - You can achieve this using javascript

 Disable Browser Back Button

      $(document).ready(function() {

         function disablePrev() { window.history.forward() }

         window.onload = disablePrev();

         window.onpageshow = function(evt) { if (evt.persisted) disableBack() }

      });

   


2- You can achieve this by assigning specific role to the user for that particular page

Thanks.

2023-11-10 11-46-42
Diogo Barbosa

Hi Sidhharth,

do you mean something like this? It doesn't apply on the screen...

2022-06-23 06-21-50
Siddharth Vyas

Can you please share me the oml so that i can provide the solution

2018-10-29 08-31-03
João Marques
 
MVP

Hi Diogo,


These arrows mean that there is a link on the source screen that goes to the target screen.

Regarding how to prevent it, there are a few ways:

  1. Upon going through the RGPD screen, you grant the user a given role. And only with that role you can access to the other screens;
  2. Upon going through the RGPD screen, you save on the database that that user is ok to go. On every screen, you check the database and only get the rest of the data after confirming that the user has gone through it, otherwise you send him to an Invalid Permissions screen or something like that.


Kind Regards,
João

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Don't put to much value in the UI Flow canvas.

Regarding your questions:

1. See https://www.outsystems.com/forums/discussion/68440/disable-browser-back-button/

2. Yes put validation in before user can navigate.

Regards,

Daniel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.