Certification creation page i nedd to add text field

Certification creation page i nedd to add text field

by praveen chamarthi -
Number of replies: 0

Hi 

In courses page Certification creation page i need to add one text field ex:partent name: Text Box

I added one field in database and i added text filed in mod/certification/mod_form.php 


Code: $mform->addElement('text','parent', 'parent','maxlength="100"  size="10"');

              $mform->setType('parent', PARAM_RAW);


I added In db mdl_certificate table "parent" field and i gave default valu" 0".


text values is not inserting into moodle table.

Average of ratings: -