Add document in a smart action

I got this smart action:

name: 'Créer un événement sur ce sinistre',
    type: 'single',
    fields: [{
      field: 'étape de l\'événement',
      type: 'Enum',
      enums: [
        'Déclaration',
        'Prise en charge par l’assurance',
        'Date d\'expertise',
        'Rapport d\'expertise',
        'Indemnisation immédiate',
        'Indemnisation différée',
        'Sinistre clôturé'
      ],
      isRequired: true
    }, {
      field: 'libellé de l\'événement',
      type: 'String',
      isRequired: true
    }, {
      field: 'descriptif',
      type: 'String'
    }, {
      field: 'afficher sur le front',
      type: 'Boolean',
      isRequired: true
    }, {
      field: 'notification email au référent',
      type: 'Boolean',
      isRequired: true
    }, {
      field: 'notification email au collaborateur',
      type: 'Boolean',
      isRequired: true
    }, {
      field: 'Document ',
      type: 'File'
    }],

When I add a file, I got an alert when I click the “use this file” button

An event is triggered warning me I’m leaving my form, but I only want to accept my file…

@JeremyV,

Thanks for sharing this issue.

I can reproduce it on my end.
I am creating a bug report and we’ll let you know as soon as it is fixed.
Meanwhile, if you click on “cancel”, it seems that the document is well added and the form not closed. Do you confirm you can use this workaround before the fix is released?

Thanks again!

I confirm it is a workaround, although it cannot be acceptable for my clients/users. I will let them know that you’re working on it.

@JeremyV of course it is not acceptable as is.
We will let you know as soon it is fixed.

Thanks.

Hey @JeremyV,

Thank you for reporting this issue. A fix has been released today :rocket:
Could you check that everything is working fine on your side now?

1 Like

Hi @Romain_Coudour
Indeed it is fixed !
Thank you

2 Likes