Validate activation code for input

Hello!

This might be answered somewhere - like making conditions to change an input border color if the password is wrong, but my brain can’t seem to figure it out.

I have a tag that requires users to validate the Tag with an activation code (the Tag ID & Activation Code are already prebuilt into the Apps Database).

Workflow I am trying to achieve:

  1. User inputs Tag ID, then inputs Activation Code
  2. User clicks the “activate” button
    3a) If Activation Code DOES match Database, then it goes to XYZ Page
    3b) If Activation Code does NOT match Database, then border color changes & message pops up.

I am just stuck on how to make the button do the search when clicked

Can’t you do this validation using a workflow?

Do a Search.
If the search: first item is not empty, redirect the user.
If the search: first item is empty, chage the input border (*)

(*) You can link the plugin border color to the value of this state. So if the state changes to a red HEX, the border will change to this color…