Video Screencast Help

validate on update

Created: 15 Oct 2012 • Updated: 16 Oct 2012 | 5 comments
This issue has been solved. See solution.


is their a way to validate the text in a textbox on update, rather than using the output paths?

this would be really useful to me .

I'm using custom validation but it only seems to kick in when one of the output paths is triggered

I'm hoping I've just missed something obvious


Comments 5 CommentsJump to latest comment

reecardo's picture

Have you tried using any Custom Event javascript (Functionality tab, Behavior category, Custom Events)? Can you give an example of what you're trying to accomplish?

carlsson's picture

Hi sorry not up to Javascript

what I'm trying to achieve is to validate and email address to a specific provider eg ""

I can get it to work but only when one of the output  paths is triggered, i would ideally like it to validate after the field is completed something like "lostFocus" action

hope that makes sense




AnaMan's picture

Check if you web control is not ignored for output path not triggering validation.

reecardo's picture

Referencing this old post of mine for a how-to:

Here's the steps I'd use:

1. Make the Control ID of the email textbox "myTxtBox" (no dbl quotes) under Functionality / Behavior

2. Add a AttributeKeyValuePair custom event to the Custom Events in Functionality / Behavior

3. Make the event onblur, and add the event handler script as follows (per your requirement):

var myTextBox = document.getElementById("myTxtBox");

if(myTextBox.value.indexOf("", myTextBox.value.length - 13) < 0)
        window.alert("Email must end in ''");

This will popup a message yelling at the user if they enter something that doesn't end in "" for an email.

carlsson's picture


Thanks Reecardo