Question
Muhammad Waseem · Jun 30

ERROR #6353: Unexpected attributes for element button (7,66): onselect

Hi,

While adding button in Zen Form I am getting below error:

"ERROR #6353: Unexpected attributes for element button (7,66): onselect"

Looking Forward

Thanks

Product version: IRIS 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1
00
2 0 2 28
Log in or sign up to continue

Hi Muhammad.

Perhaps Zen button does not have such attribute -- "onselect". Maybe you need "onclick" instead?

See the documentation for list of possible attributes

Somewhere in your button tag, you have onselect= something. Buttons don't have an onselect, but even if they did, I'm guessing that's not the event you actually want. onselect happens when a user highlights text within a control, like in a text input.

If you're trying to set what happens when the user clicks the button, that's onclick.

If you're trying to set what happens when the user selects the button but doesn't click it (say by pressing tab until the button is highlighted) that's onfocus.