I'm working on user-driven choices of views in My Moodle for 1.9.12 (later I'll put this into 2.0.x as we're moving there soon).
I have created a an extra profile field for the user's choice, and various controls for Admin. (all easy stuff). I've created new stripped out versions of the edit.php and edit_form.php in /my to present solely the extra profile fields at the top of the user's My Moodle page (not rocket science). But I have intentionally removed the 'Submit' button from the form as I want the simplest possible interface, with the underlying datafield change and in consequence the page view changing immediately on the user making a choice from a drop-down Option fieldset.
Hence my questions:
(1) how do you override the underlying moodleform so that data submits on change,
(2) how do you remove the Category name from the form, and
(3) how do you then trigger a page refresh with the new data. (there is no point in changing the page view with an AJAX selection where, say, all four page views are pre-loaded but only one shows, because this would be slower and the user is likely to change their choice very rarely).
Any pointers in the right direction would be good. For example, are their already some pages that change on change of data without a submit button? Or is the best approach to forget moodleform overrides and write my own more simple form? I believe in conformity, but am I trying too hard?! I've search the forums but not found anything on this yet.
Regards and thanks, John