Skip to main content

Fast Edit

fastedit is a per-row table button that turns an existing row into editable inputs inline, so a single record can be updated without opening a separate edit page.

Like every fast element, it is used with a table. You enable it per row through $table['tb_list_button'], and fastedit_action tells the framework which table/handler the row belongs to so the change can be saved.

Use fastedit when:

  • A row in an inline table needs to be edited in place.
  • The detail records belong to a parent record shown on the same page.
  • You want inline edit + delete on each row of a managed table.

Enable fastedit per row

Real example from customer/related_parties.module.php — each related-party row gets a fastedit and a fastdelete button via tb_list_button. The *_action keys name the target table/handler.

{
"row_id": 25,
"fastedit": true,
"fastedit_action": "related_parties",
"fastdelete": true,
"fastdelete_action": "interrelation"
}

Fast Edit


Behavior

  • Bound to a table: fastedit lives in $table['tb_list_button'], one entry per row.
  • Row identity: row_id identifies which record the button acts on.
  • Action target: fastedit_action names the table/AJAX action used to load and save the edited row.
  • Inline edit: Clicking switches the row to editable inputs; saving persists the change for that row.

Usage Notes

  • Set row_id on every tb_list_button entry so the framework knows which record to edit.
  • Pair fastedit with fastedit_action; without the action the row cannot be saved.
  • To edit all rows of a table at once (not just one), use Full Fast Edit.