When-validate-item on a single field block [message #658261] |
Wed, 07 December 2016 11:02 |
|
mforms
Messages: 3 Registered: December 2016
|
Junior Member |
|
|
I have a single single text field and button on a non database block. Initially the button is disabled, but when text is entered into the text field the button to be enabled. How would I be able to achieve that? any help is appreciated.
|
|
|
|
|
|
Re: When-validate-item on a single field block [message #658280 is a reply to message #658270] |
Thu, 08 December 2016 03:26 |
cookiemonster
Messages: 13961 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
The button is disabled at the start, so isn't navigable until after WVI fires.
I think in this case you're just going to have to leave the button enabled and have the when-button-pressed check if a value has been entered, if it hasn't raise an error telling the user to enter a value.
|
|
|
|
|
Re: When-validate-item on a single field block [message #658356 is a reply to message #658268] |
Fri, 09 December 2016 13:02 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
mforms wrote on Wed, 07 December 2016 14:58I did try that, the when-validate-item doesn't seem to fire, because i think since there is only one field, no where to tab out for that trigger to fire?
But tabbing will just go to the same field and WVI will fire.
What are you actually trying to achieve?
Other than what I said, what cookiemonster said is the best solution.
[Updated on: Fri, 09 December 2016 13:05] Report message to a moderator
|
|
|
|
Re: When-validate-item on a single field block [message #658392 is a reply to message #658376] |
Mon, 12 December 2016 08:19 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
When I press Enter or Tab, the WVI runs for me.
I created a dummy form based on a non-database block, one text item, one button. button is disabled and navigable is set to NO for keyboard and mouse. WVI fires if I hit either key as soon as the form starts, or after I change any value in the text item.
|
|
|
Re: When-validate-item on a single field block [message #658394 is a reply to message #658392] |
Mon, 12 December 2016 08:41 |
cookiemonster
Messages: 13961 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
I'm surprised but fair enough. Presumably that's not happening for the OP though.
So:
1) What version of forms are you using?
2) What is your form level Defer Required Enforcement property set to?
@mforms - same questions for you.
|
|
|
|
|
|
|