Lloyd K
7 Feb 2008, 4:45 AM
I currently have the following dialog/form:
http://www.lloydkinsella.net/forumbin/0024.png
What I want to do is add a "Set" button to the fieldset underneath the edit boxes only I can't figure how to do this, does anyone have any ideas?
The code to generate the form is:
// Create security form
this.securityForm = new Ext.form.Form({
labelAlign: "left",
labelWidth: 150
});
// Create security form layout
this.securityForm.fieldset({
id: "gbxPassword",
legend: "Password"
},
new Ext.form.TextField({
fieldLabel: "Current Password",
name: "userprefs_currentpassword",
inputType: "password",
width: 400
}),
new Ext.form.TextField({
fieldLabel: "New Password",
name: "userprefs_newpassword",
inputType: "password",
width: 400
}),
new Ext.form.TextField({
fieldLabel: "Confirm New Password",
name: "userprefs_confirmpassword",
inputType: "password",
width: 400
})
);
this.securityForm.end();
// Render security form to dialog
this.securityForm.render(securityFormId);
http://www.lloydkinsella.net/forumbin/0024.png
What I want to do is add a "Set" button to the fieldset underneath the edit boxes only I can't figure how to do this, does anyone have any ideas?
The code to generate the form is:
// Create security form
this.securityForm = new Ext.form.Form({
labelAlign: "left",
labelWidth: 150
});
// Create security form layout
this.securityForm.fieldset({
id: "gbxPassword",
legend: "Password"
},
new Ext.form.TextField({
fieldLabel: "Current Password",
name: "userprefs_currentpassword",
inputType: "password",
width: 400
}),
new Ext.form.TextField({
fieldLabel: "New Password",
name: "userprefs_newpassword",
inputType: "password",
width: 400
}),
new Ext.form.TextField({
fieldLabel: "Confirm New Password",
name: "userprefs_confirmpassword",
inputType: "password",
width: 400
})
);
this.securityForm.end();
// Render security form to dialog
this.securityForm.render(securityFormId);