×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
setFieldAttribute and Subform
Thời gian tải trang: 0.047 giây
public function getForm($data = array(), $loadData = true)
{
// Get the form.
$form = $this->loadForm('com_evisit.visit', 'visitform', array(
'control' => 'jform',
'load_data' => $loadData
)
);
if (empty($form))
{
return false;
}
$form->setFieldAttribute('myfield', 'required', 'true');
return $form;
}
Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.
We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.