Opened 15 years ago

Closed 15 years ago

#3283 closed enhancement (worksforme)

Widgets enhancing form fields should have an API to get the field name

Reported by: guest Owned by: bill
Priority: high Milestone:
Component: Dijit Version: 0.9
Keywords: form widget Cc: [email protected]
Blocked By: Blocking:


I'm dealing with nested forms using div's and my own way of keeping track of the form fields. This is needed to be able to handle ajax stuff in a more flexible way (in UCW, a lisp based web framework).

But i couldn't find a way to get the field name from a widget wrapping a good old html form field (like Editor2 enhancing my textarea).

I'm looking for something similar to getValue(), but it should be getName() or getFieldName(). Or at least there should be a common way to access the DOM node that was used to instantiate a widget, so i could do something like

I hope I made sense, thanks for your time.

Change History (2)

comment:1 Changed 15 years ago by Adam Peller

Component: GeneralDijit
Owner: changed from anonymous to bill

is just getting the name attribute sufficient? Do our new form fields preserve that?

comment:2 Changed 15 years ago by bill

Resolution: worksforme
Status: newclosed

Yeah, just dijit.byId("myWidget").name should tell you the name.

Note: See TracTickets for help on using tickets.