Problem Login Form only if user not logged

06 Mar '15, 03:42 PM
20,087 Views
No Forum Badges

Hi all,
I've a problem: I've created a master page for the user login with the common modules (i.e. the getCurrentUser Key and the user detail if the user has already did the login, and a form to put user and pass linked to a "login" module). The login module works correctly (for example after doing a correct login the getCurrentUser Key find the user id and show the user detail).
My problem is that: even when the user is logged, the login form is visible and it is (obviously) erroneous. So, I can put not visible the login form if the user is already logged?

thanks all,
best regards

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

Hi Giacomo,

to hide the Login form, you can use a Visibility Condition.

A Visibility Condition gives the possibility to hide or display an item in the grid depending to a certain condition. In your case, if the user is logged or not.

 

To create and use a Visibility Condition you follow the following steps:

  1. Create an Activation Expression that check if the user is logged. This expression returns a boolean value, true or false, depending on if the condition is fulfilled or not.
  2. Apply the Activation Expression to the Login form: select the form in the "Layout" View, move to the "Properties View" and open the "Condition" tab, then set the "Activation Expression" in the dropdown of the "Component Visibility Condition" property.

 

You can refer to the following article to learn more about the Visibility Condition http://www.webratio.com/learn/learningobject/getting-started-with-visibility-conditions-v-72.

 

Best regards.

   
x 1
No Forum Badges

thank you so much! :)

 
x 0
No Forum Badges

i also got this problem, thank you for all
 

 
x 0
Answer at this question and get points!

Related questions

2 grids inside one/same cell result in non-selectable 2nd grid Access page variable in a page template add html Agregar boton de cambio de contraseƱa en el login Ajax is not working in own style project Ajax web app with javascript history object using the WebRatio Alimentar graficas con base de datos Alternate way to get current User Oid in layout template groovy script? Any way to localize the Tab Grid Template (Webratio Store)? Applicare un template ad un Web Project Ayuda Simple List Component Layout personalizado Bootstrap Style Button to go on another page Cambiare dimensioni bottoni - Change button size Can I inject html into custom unit template?! Change color template bootstrap style Change Style Changing the login page does not work ckeditor - change directory for the browser Colore Attributi index unit Dinamico - Index unit dynamic attribute color Como abrir una ventana en ajax desde una master page Como embeber un video subido desde archivo ? Como mostrar una imagen de portada arriba del menu? Como mostrar una imagen en una lista o en la componente detalles? Como utilizar el login para redireccionar a diferentes site views? Confirm Dialog Customize layout mobile platform Custom Tooltip Position Deafult Module Default error pages default login page Display contents of a URL Dynamic link labelling for Custom Unit entry form logic. Error in Excel Unit - Font size Export to a HTML/CSS/JS project Facebook login and personalization Field as link soruce File CSS non considerato in generazione Form element Form template Get date pattern Get home page from template Google map is not shown properly in the tab grid Guardar Saltos de LINEA HelloWorld Unit sample code Help for login unit Help with Login Unit Hiding landmarks (or flows) when the user is logged in How can i create pagemenu or landmarkmenu with multiple levels. How can I modified the htmls files to perform my style How to add an image in a modal/pop-up window? How to Delete a WebRatio Account? How to fix Network error(status 0) How to get all the modules I've created How to include a template into other template? How to localize AJAX waiting dialog? How to localize the multi message unit in the notification layout How to modify template? How to modify the FertileEnviroment Default page How to redirect to the correct site view after a successful login attempt How to remove default Linked Resources? How to use LandmarkMenu as AJAX navigation how to use the landmark menu as AJAX navigation Image in pdf without knowing the size Inserimento dati in tabella intermedia su relazione N:N integrate framework to webratio mobile Integrazione javascript Javascript and html javascript history object Localize "Welcome..." and "Process details" Login Error logo webratio meaning of each tag in the XML code (Show XML/Show Layout XML) modify field html Modify html generated by wr:NavigationBar modifying a Log-In unit No access to protected site view with Login Pages Problem After Project Generation pass template variable Personalizzazione del login component Problem print Problems with the page refresh (Tab Grid) Problem with adding templates query unit who to hide fields that are used in a link Recursive Hierarchical Index Unit Style Tree Redirecting user to his proper site view upon login Redirect to the default module Remove default BPM css import for all templates Responsive Bootstrap Grid Responsive Layout Manager Set context parameter Show login, logout and sign on Simple Static Page Site view scope Standard confirm dialog replacement Style hierarchical unit help!! Supoort for Mobile and Desktop display Target tabs in Tab Grid Control Tooltip on a field Too much layout parameters = no scroll in parameters config window Unable to connect to Internet unable to login to web ratio community edition Uppercase Use image as interaction flow User Login Timestamp usuarios y grupos Vista de diferentes Site Views Webratio Add-ons no permite login wr-ajaxDivs break layout on ajax pages.