Hello,
When I set a relation N to N the field appear at the end of the form. Is there a way to insert the field after any field.
Thank for your help.
⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠
Posted 18 June 2019 - 07:14 AM
Hello,
When I set a relation N to N the field appear at the end of the form. Is there a way to insert the field after any field.
Thank for your help.
Posted 22 June 2019 - 06:26 AM
Hello,
When I set a relation N to N the field appear at the end of the form. Is there a way to insert the field after any field.
Thank for your help.
Hello @nunenthal,
You can use the fields method but you will need to provide all of your fields there (with your preferred order). For example:
$crud->fields(['first_name', 'last_name', 'address']);
For more you can check the link at the documentation here: https://www.grocerycrud.com/enterprise/api-and-function-list/fields-2/
Regards
Johnny