Delete Link on Child Page
This method can create a scenario where users can delete a record from the child detail or edit page for the given record. Upon deletion, the user is redirected back to the parent page.
Step 1
Download the Tadabase Rest API and plugin API keys.
Step 2
In your child page, create an edit form. Go to the form rules tab and set a submit rule to redirect to the parent page.
Next, create a record rule to "update this record" with the following settings.
Step 3
You can change your submit button text in the options tab within your edit form. When you change the CSS class to btn-danger, it will change the button to red.
Step 4
Instead of a check mark, you can change the button Icon to a trash can with the following code added to the page's JavaScript tab.
TB.render('component_4', function(data) {
var icon = $('.btn-danger > .far');
icon.addClass('fa-trash');
icon.removeClass('fa-check');
});
Be sure to change the component ID to your edit forms component ID, which can be found in the image below.
Original Community Post:
Delete Link on Child Page - Community Discussions / Tips and Tricks - Tadabase Community
We'd love to hear your feedback.