1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.
    Dismiss Notice

Notes element is not editable on form create

Discussion in 'Community' started by farinacci, Oct 12, 2018 at 10:02 PM.

  1. farinacci

    farinacci Member

    Level: Community
    Hello all,

    i have create list A_notes with id, datetime, foreign_key, notes

    then in the list B i create element "notes" and join the list A_notes.

    Everything work well but, when create a new record on list B, note element is disable...
    work only in update.
    Why ? I can resolve this issue ?

  2. farinacci

    farinacci Member

    Level: Community
    Has anyone seen this problem before and have a solution ?
  3. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    It's by design. Because notes are created using AJAX calls to the server from the form, ie. they happen as the user adds the note, not when the form is submitted (when the rest of the form data is processed), we need to know the row id (PK) of the form's record, to insert into that 'foreign_key' (FK) field in the notes table, so we know which form row the note belongs to. A new form doesn't have a row id until after it has been submitted. So you can only add notes to rows you are editing, where the row id is known.

    -- hugh

Share This Page