Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37704

Modform - Change amount of Input-Fields with GetParam

$
0
0
by Julian Jan..  

Hi developers,

Im currently creating a little moodle plugin , its a question form with multiple choice checkboxes. My problem in the Modform i want to let the creator of the Activity to change the amount of Text Input Fields with the Get parameter &fields=x but when i submit the form it only sends the first field.

But, when i create the loop with a hardcoded amount of iterations it sends all fields.

Is this somehow a securty measure or what is the problem ?

Sry if it´s a stupid question but im pretty new to moodle plugin development.

Ps:In the file i appendet i tried a workaround but it wasn´t sucessfull.


Viewing all articles
Browse latest Browse all 37704

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>