1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Notes element is not editable on form create

Discussion in 'Community' started by farinacci, Oct 12, 2018.

  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 ?

    Grazie
     
  2. farinacci

    farinacci Member

    Level: Community
    Has anyone seen this problem before and have a solution ?
    Grazie
     
  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
     
  4. farinacci

    farinacci Member

    Level: Community
    ok thanks
     

Share This Page