Is there a way to add 'id' attributes to the form elements in the UI Designer?

1
0
-1

I need to know if there is a way to add ids to form elements in the UI designer.
In the 6.5 forms I was able to add my own ids to elements using the General Tab> options > HTML attributes feature on the widgets.

4 answers

1
0
-1
This one is the BEST answer!

A workaround suggested was to use 'css classes' in the UI designer to add a unique class name so that we can reference that element using that class name. Like , $('.unique-class-name')

1
0
-1

Do you have a resource explaining how the processes communicate with the example?

1
0
-1

How do I get form ID in Bonita?
Please answer this question.

1
0
-1

No there is no way to do this, if you want Bonita to add it then you will have to add it as a new idea here:
http://community.bonitasoft.com/ideas

and I will support you on this. (ignore the bad post it's already been reported)

You could have a look at adding the ID after the page has loaded...as follows
http://stackoverflow.com/questions/3319683/add-id-to-dynamically-created...

Other than that the only other way is to replicate all the widgets you need ids for as Custom Widgets.

regards
Seán

PS: I realize this isn't the answer you were looking for but as it answers your question, please mark as resolved.

Comments

Submitted by apatil on Fri, 07/29/2016 - 16:49

Thanks for your response!
As per your suggestion I've created an "idea" http://community.bonitasoft.com/ideas/give-developers-ability-add-ids-fo...

I don't think creating custom widgets to replicate what's already available would be ideal. It seems we spend more time trying to come up with hacks or workarounds rather than do simple development.

A workaround suggested was to use 'css classes' in the UI designer to add a unique class name so that we can reference that element using that class name. Like , $('.unique-class-name')

Notifications