In scorm form setting default values

In scorm form setting default values

by Raphael Goldman -
Number of replies: 1

Hi,

I need to set default values for tomeopen and timeclose fields

I tried adding those lines, but it didn't make anychange. anyone has an idea why?

$mform->addElement('date_time_selector', 'timeopen', get_string("scormopen", "scorm"), array('optional' => true));

$mform->setDefault('timeopen', time()+3600);

$mform->addElement('date_time_selector', 'timeclose', get_string("scormclose", "scorm"), array('optional' => true));

$mform->setDefault('timeclose', time()+7*24*3600);

Average of ratings: -
In reply to Raphael Goldman

תשובה ל: In scorm form setting default values

by Raphael Goldman -

I found the reason why it didn't get the default value,

There was a default value defined in the data_preprocessing function