General developer forum

 
 
Picture of roc mehra
How to add a custom field and save
 

Hi All,

I want to add some custom field in moodle activity named folder and save into the database.

And i have add the new field by following:

In mod/folder/mod_form.php

But How to save in database.Any Idea. Thanks in Advance.

$mform->addElement('text','category',get_string('category');

 
Average of ratings: -
Picture of roc mehra
Re: How to add a custom field and save
 

Solved

 
Average of ratings: -
Picture of Rituraj Jain
Re: How to add a custom field and save
 

Hey please guide me how to do it. I want to add a field to the add course form.

Thankx in advance.

 
Average of ratings: -