Welcome to the new Tahua Help Center!

Allow deleting fields from locked form builder templates

Problem

Once a form builder template is locked (i.e. it has been published and is in use), administrators cannot delete individual fields from it. This is overly restrictive — there are legitimate cases where a field needs to be removed from a live template, such as removing a question that is no longer relevant. The only workaround is to create an entirely new template, which is disruptive.

Solution

Administrators can now delete individual fields from locked templates. To guard against accidental data loss, a confirmation dialog requires the user to type "DELETE" before the action proceeds. The dialog also shows how many forms the field has been filled in on, so administrators can make an informed decision.

Sections and field groups on locked templates can also be deleted with the same confirmation flow.

Deliverables templates where the milestone has already been approved remain protected and do not allow field deletion.

How it works

When an administrator clicks the delete (trash) icon on a field within a locked template, the system checks how many submitted forms contain data for that field. A modal dialog appears showing:

  • A warning that data will be lost (if the field has been filled in on any forms)

  • The number of forms affected

  • A text input requiring the user to type "DELETE" in all caps to confirm

If the field has never been filled in and has no usage, it is deleted immediately without the confirmation dialog.

The same typed-confirmation dialog is used for deleting pages and sections that contain filled-in data, regardless of whether the template is locked.

UI

  • The delete (trash) icon now appears on fields within locked templates (previously it was hidden).

  • The section delete icon is also visible on locked templates.

  • Browser confirm() dialogs have been replaced with an in-page modal dialog across all form builder delete actions (fields, sections, pages).

  • The modal shows a contextual warning message, a prompt to type "DELETE", and Cancel/Delete buttons. The Delete button is disabled until the user types the correct confirmation text.

Last updated

Was this helpful?