possible: validate on input?

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

possible: validate on input?

Post by onoehring » 2026-05-18 16:02

Hi Jan,

your post (https://www.appgini.de/docs/Javascript- ... ation.html) does not help me.
I am wondering if it is possible to validate a textfield on input (while the user types).
My purpose is to check for existing values, so that the user does not try to create a record but a "unique" field is not unique and saving fails.
I would like the user to be notified asap (enough, when he leaves the field).

(similar to this https://forums.appgini.com/phpbb/viewto ... the%20form. )

Thanks
Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: possible: validate on input?

Post by jsetzer » 2026-05-18 17:43

You can always use a control's on-input or on-change event in javascript.

https://www.w3schools.com/jsref/event_oninput.asp
https://www.w3schools.com/jsref/event_onchange.asp

On-blur also helps sometimes.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts:1464
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: possible: validate on input?

Post by onoehring » 2026-05-19 05:02

HI Jan,
thanks. didn't think of this - any thought you may have something better.
Take care
Olaf

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts:2027
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: possible: validate on input?

Post by jsetzer » 2026-05-19 06:57

on-input, on-change, on-focus, on-blur are THE "go-to-solutions" for event handling. Do not re-invent the wheel.
any thought you may have something better.
All wrappers in AppGini Helper Javascript Library would do nothing but the same: wrapping those event-handlers.
Kind regards,
Jan <js />

AppGini 26.12 + all AppGini Helper tools

My Side Project
www.office-app.com | Coding Sample | Changelog | Blog | Top 20 Features
Integrated Statemachine Workflow • KANBAN • Audit Trail • Integrated API • Model Driven • Field-Level permission • Modern UI

My Company Website
www.bizzworxx.de

My AppGini Blog
appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability Image

Post Reply