mauro
Member
Hi Fabrik community,
I'm learning to use repeat groups to allow the user to edit (in the same form) a record from a master table and all its related rows from a detail table. I think it's very cool feature but now I have a problem I don't know how to manage...
In the form with repeat groups, I would like to make a validation check so that the user should not be allowed to delete a detail row (repeat group) if some conditions are not met (for example, if there exists a record in another table that has a FK related to this detail row, the user should not be allowed to delete this repeat group).
If this was just a list, I know I could use the 'candeleterow' list plugin to make this check inside a php evaluation, but how can I do that for the rows of repeated groups too? It could be nice to have a 'candeleterepeatedgroups' form plugin...
I'm learning to use repeat groups to allow the user to edit (in the same form) a record from a master table and all its related rows from a detail table. I think it's very cool feature but now I have a problem I don't know how to manage...
In the form with repeat groups, I would like to make a validation check so that the user should not be allowed to delete a detail row (repeat group) if some conditions are not met (for example, if there exists a record in another table that has a FK related to this detail row, the user should not be allowed to delete this repeat group).
If this was just a list, I know I could use the 'candeleterow' list plugin to make this check inside a php evaluation, but how can I do that for the rows of repeated groups too? It could be nice to have a 'candeleterepeatedgroups' form plugin...