Web Form If statement help

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Web Form If statement help

L2 Linker

Trying to get and if statement in the web form working. What I am trying to accomplish is to have an if statement if a password field is detected. Reason being some users have passwordless sign-in so they are never prompted for a password and some are required to put in a password. So I need it to first input the email, click the button, and then if a password field shows input the password, if not don't do anything. Below is what I have but it seems to break when I try to launch the connection.

 

(Wait=2)

i0116 > {username}@gmail.com

idSIButton9 > (Button)

if (i0118 > (Condition) (SearchBy=Text\id\name\class) ( Exists [eq] %True\False% ))

i0118 > {password}

end-if

1 accepted solution

Accepted Solutions

Managed to get it working by adding one more set of parentheses like below

 

if ((i0118 > (Condition) (SearchBy=text) (Exists eq True)))

View solution in original post

4 REPLIES 4

L7 Applicator

Hi @Alex Jensen​ 

 

Please try this Webform.

 

(Wait=2)

i0116 > {username}@gmail.com

idSIButton9 > (Button)

(Wait=2)

if i0118 > (Condition) (SearchBy=Text)(Exists=True)

i0118 > {password}

end-if

Malhar thanks for responding. That got me closer but now it is saying failure to parse webform on line 5, which is the beginning of the if statement shown below.

 

if (i0118 > (Condition) (SearchBy=Text)(Exists=True)

L7 Applicator

Hi @Ajay Deo​ 

 

Okay got it. Please find the updated one below.

 

(Wait=2)

i0116 > {username}

idSIButton9 > (Button)

(Wait=2)

if (i0118)(exists=true)

i0118 > {password}

idSIButton9 > (Button)

end-if

Managed to get it working by adding one more set of parentheses like below

 

if ((i0118 > (Condition) (SearchBy=text) (Exists eq True)))

  • 1 accepted solution
  • 274 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!