Keyboard events (onkeyup)

  • 21 Views
  • Last Post 4 weeks ago
Karen Reyes posted this 4 weeks ago

Hello, I'm working on FC V11, in the form I'm working on, a field that could have duplicate values is being validated, when repeated values are presented, an error is generated. These cases must be reviewed by a supervisor to verify if it is indeed an error or if it is just a warning.

We need to add a field that acts as a password to validate an error, through this the supervisor certifies that he reviewed the document, that it is a warning and that he can continue the workflow.

So I need to mask the text of that field, but I'm not clear on how to access and handle these keyboard events in FC.

Could you please tell me how to access keyboard events or if there is another way to do what I need?

 

Thank you

hawkeye69 posted this 4 weeks ago

I wasn't able to find a way to do this. I had to make my own form with a DLL I created using C# in Visual Studio. Then I created a Custom Action on the field. Click the button and the form pops up and masks the entry. And I capture what was entered into the form.

The technique is from this knowledge base article here. This is the code in my Custom Action.

using PasswordBox;

PasswordForm pwForm = new PasswordForm();

pwForm.DisplayForm();

Context.Text = pwForm.EnteredValue;

pwForm = null;

Context.CheckSucceeded = true;

I'll see if I can attach the code to my class. All of this is very simplistic but it works. I tried to attach a screenshot below too.

Password Box

 

Adrian Enders

Close