I use QFfield with Utils_ChainedSelectCommon(this function is similar to QFfield_phone funtion in PhoneCallCommon class).
When click to edit record, ajax modules/Utils/ChainedSelect/req.php not fire. Please help me.
public static function QFfield_RPM(&$form, $field, $label, $mode, $default, $desc, $rb_obj){
if ($mode=='add' || $mode=='edit')
{
$form->addElement('select', $field, $label, array(), array('id'=>$field));
if($mode=='edit') $form->setDefaults(array($field=>$default));
Utils_ChainedSelectCommon::create($field, array('electric_power_frequency', 'fan_type'),'modules/ABC/FanType/get_rpm_of_type_electric_power_frequency.php',null,$form->exportValue($field));
Utils_ChainedSelectCommon::create($field, array('fan_type', 'electric_power_frequency'),'modules/ABC/FanType/get_rpm_of_type_electric_power_frequency.php',null,$form->exportValue($field));
$form->addFormRule(array('ABC_FanCommon','check_rpm_not_empty'));
}
else
{
$form->addElement('static', $field, $label, Utils_RecordBrowserCommon::get_value('ABC_RPM', $default, 'value'));
}
}