Hi,
at the moment I'm ceating my own plugin. For that purpose I copied
a standard plugin(-folder) (choice) and modified it. Now I need a special
input form. The input (A) should be subject to another
input B. The latter is a drop down box. The drop down box contains e.g.
cow, pig, horse. If a user chooses e.g. 'horse' this should lead to a semantic
evaluation of input (A). In other words, if user fills out the form and hits
the add_action_button, the above mentioned should be called and may result in
an error message, if the cont of input (A) is not accepted.
Can I do this from within the plugin folder ? Or do have to make changes
in "formslib.php" ?
Basicly I have an edit_form.php file in my plugin folder which contains
a class like <pluginname>_entry_form extends moodleform as well as an
validation function.
Do I need an AJAX-Call ? If so, how can I invoke Javascript in
Moodle 2.9.1 ? What would be the way here ?
Can you get me started here ..?
Many Thanks!
Matti