Closed jesnagifto closed 1 year ago
Have you tried to add hidden field with "user_id" as name and then removing it from form's data in a callback?
$user_id = intval($request['user_id']);
// ...
$form->hidden('user_id', $user_id);
// ...
$form->ignore(['user_id']);
This way user_id
should appear in the Form submission request values (eg request('user_id')
) but won't trigger DB saving error, because it will not be added to Business's model data.
Description:
can not saving the form field
// // Set the vca_id field with the corresponding id from the latest Custregister record // $form->model()->fathers_name = $custregister->fathers_name; // $form->model()->candidate_name = $custregister->candidate_name; // $form->model()->mothers_name = $custregister->mothers_name; // $form->model()->house_name = $custregister->house_name; // $form->model()->mob_1=$custregister->mob_1; // $form->model()->mob_2 = $custregister->mob_2; // $form->model()->date_of_birth = $custregister->date_of_birth;
error detecting the 129 th line... please solve this.
Steps To Reproduce:
this picture id is fetch the details in table, but can not save the form