How to get selected value when submitted moodle form

Re: How to get selected value when submitted moodle form

by Benjamin Ellis -
Number of replies: 1
Picture of Particularly helpful Moodlers
Hi,

Probably a silly question but have you created a moodle_form class and defined the select in the definition() function?  Sounds to me like the select is not in a form - maybe look at the HTML source?
In reply to Benjamin Ellis

Re: How to get selected value when submitted moodle form

by Juan David Ramirez Giron -
Hello Benjamin, sorry for the late response.

I finally got it some days ago. The function definition_after_data() from the moodle_form class did the trick.

Thanks anyway for reaching out!