- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
08-06-2025 07:55 AM
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
08-06-2025 01:42 PM
Managed to get it working by adding one more set of parentheses like below
if ((i0118 > (Condition) (SearchBy=text) (Exists eq True)))
08-06-2025 12:43 PM
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
08-06-2025 01:27 PM
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)
08-06-2025 01:40 PM
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
08-06-2025 01:42 PM
Managed to get it working by adding one more set of parentheses like below
if ((i0118 > (Condition) (SearchBy=text) (Exists eq True)))
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!

