Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

WORD object events available

Questions related to using nuBuilder Forte.
Post Reply
Uzlander
Posts: 70
Joined: Sat Jul 08, 2023 10:21 am
Has thanked: 15 times
Been thanked: 6 times

WORD object events available

Unread post by Uzlander »

I've been wondering what js events are there applicable to Word type form-element?
I mean, i tried 'onclick', 'onfocus' to trigger some functionality on the form, but seems it doesn't work with Word/Label type, neither it does with say 'Display' or 'Calc' fields (perhaps because they not meant to take input).
So is there a way to make a WORD object clickable, to use it as some button for frontend manipulations (i needed something alike several times) ?
steven
Posts: 430
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 61 times
Been thanked: 56 times

Re: WORD object events available

Unread post by steven »

Uzlander ,

If you have a Word Object called word_object you could place this on the Form's JavaScript before it loads...

Code: Select all

$('#word_object').click(function() {
        alert('Word object clicked!');
    });
OR

You could create a Object - Input::Button.

Flatten it out with CSS - so that it looks like just words.

And add an onclick event the same way as normal.

Code: Select all

background-color:transparent; border: none; color: black;background-color: transparent; border: none;color:black;outline: none;
w.png

Steven
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
Buy Kev a Coffee
Post Reply