DCA and Create (form) on UX

Hello,


I have trouble with the creation of a new item in my module using Create form on the UX.

I have the error " Failed to create item ".
The line item that is in my module is ruled by a DCA, allowing it to be editable only when the "Modify?" boolean is checked by the end user.

Do you have any idea on how can I manage to get rid of this error, but still be able to edit line item on "modify?" click ?

Thank you very much

Answers

  • To add more context.
    This is my dashboard.
    When I Check M? , the Type of reconduction Line item should be editable ( ok until here ).
    But the use of the DCA to make it possible is blocking the creation of a new item ( see the second image ), have the "failed to create item" error..

  • Make sure you have top level for the list where you are adding the list item

  • Thanks for you answer.

    I do have a top level, the list is a numbered one.

    The only problem I have is when I want to create a new item using a Form action button, I have a "Failed to create item" due to the DCA I apply on the line item "Type de reconduction"

  • NoahJ
    edited October 1

    @SofianeLz the way that Forms work is that all fields included in the form are written at the "same moment" - no calculation happens in between one data entry and the next. If the Form cannot write into all cells for which the user has entered data, then it rejects the entire item creation.

    For that reason, once the item is created, the "default" value for all DCA on line items you want to include in the form should be TRUE if the user should be able to enter any data at all.

    I.e. in normal usage a "field B" could be locked with DCA until the user first entered a certain value in "field A" - that will not be possible in a UX Form at the moment, "field B" would have to start as unlocked.

    This does limit certain functionality, which is unfortunate. Hopefully the explanation helps.