How to use

looop_on-login=change-text
change-text="REPLACE_WITH_SUB_VARIABLE_OR_PLAIN_TEXT"

Avilable Sub-Variables

Email

This will replace the text with the logged in user’s email.

change-text="email"

First Name

This will replace the text with the logged in user’s first name.

change-text="firstname"

Last Name

This will replace the text with the logged in user’s last name.

change-text="lastname"

Full Name

This will replace the text with the logged in user’s full name.

change-text="fullname"

User ID

This will replace the text with the logged in user’s user id.

change-text="id"

Phone

This will replace the text with the logged in user’s phone number.

change-text="phone"

Address

This will replace the text with the logged in user’s address.

change-text="address"

If value of change-text is not from sub-variables noted ablove, Looop will replace the text with the value of change-text.

Example

  1. Lets say we want to change the text of a button to the logged in user’s first name. We can do this by adding the following attributes to the button element.
looop_on-login=change-text
change-text="firstname"
  1. Now if we want to chnage teh text of same button to to say “Logged in” if the user is logged in, we can do this by adding the following attributes to the button element.
looop_on-login=change-text
change-text="Logged in"