hello everyone
I have this issue while testing my process Model .how can i solve it please !
Discussion posts and replies are publicly visible
hi hrshkar may i know why are you using onSuccess parameter in button widget it will show as an invalid parameter
even when i hide this part of the code i still have the same problem
a!localVariables( local!file, local!success, a!formLayout( label: "Create account", contents: { a!cardLayout( contents: { a!sideBySideLayout( items: { a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", value: { "Home ", a!richTextIcon( icon: "chevron-right" ), " Create account", char(10), a!richTextItem( text: { " !" }, size: "LARGE" ) } ) ) }, alignVertical: "MIDDLE" ) }, height: "AUTO", style: "#8A220C", padding: "MORE", marginBelow: "NONE", showBorder: false ), a!columnsLayout( columns: { a!columnLayout( contents: { a!textField( label: "Nom ", labelPosition: "ABOVE", instructions: "", helpTooltip: "", placeholder: "donner votre nom ", value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{0399793e-a303-4fd2-8a2f-6136b4bbdf6e}Nom'], saveInto: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{0399793e-a303-4fd2-8a2f-6136b4bbdf6e}Nom'], refreshAfter: "UNFOCUS", characterLimit: 4000, required: true(), align: "LEFT", inputPurpose: "NAME" ), a!checkboxField( choiceLabels: {"Merci de donner votre nom correct, similaire à celui de la carte d'identité nationale. "}, choiceValues: {1}, label: "", labelPosition: "", saveInto: {}, validations: {} ), a!textField( label: "Prénom ", labelPosition: "ABOVE", instructions: "", helpTooltip: "", placeholder: "donner votre aprenom", value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{d3d0014e-232c-49de-a780-8c9ce646de70}prenom'], saveinto: { ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{d3d0014e-232c-49de-a780-8c9ce646de70}prenom'] }, /*cons!PBY_STORE_MAIL},*/ characterLimit: 4000, required: true() ), a!integerField( label: "Numero Portable ", labelPosition: "ABOVE", placeholder: "donner votre numéro de téléphone", value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{34b4df1b-b528-4766-9de7-a42bf38ed3c4}NumeroPortable'], saveInto: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{34b4df1b-b528-4766-9de7-a42bf38ed3c4}NumeroPortable'], required: true() ), a!textField( label: "Email ", labelPosition: "ABOVE", instructions: "", helpTooltip: "", placeholder: "donner votre adresse email", value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{09ad7c2a-2301-40cd-a353-6fc234434574}Mail'], saveInto: {ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{09ad7c2a-2301-40cd-a353-6fc234434574}Mail']}, /*cons!PBY_STORE_MAIL},*/ characterLimit: 4000, required: true() ), a!dateField( label: "Date De Naissance", labelPosition: "ABOVE", value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{ea2a0583-3445-4dd1-b9bf-b090658729ce}DateDeNaissance'], saveInto: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{ea2a0583-3445-4dd1-b9bf-b090658729ce}DateDeNaissance'], required: true ), a!textField( label: "Nationalite", labelPosition: "ABOVE", value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{b649be61-fdb6-4034-b24a-0cdf9d874e50}Nationalite'], saveInto: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{b649be61-fdb6-4034-b24a-0cdf9d874e50}Nationalite'], characterLimit: 255, required: true() ), /*a!textField(*/ /*label: "Sexe",*/ /*labelPosition: "ABOVE",*/ /*value: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{42ae35ee-dc97-411c-bcb7-4b0aac8ac8ca}Sexe'],*/ /*saveInto: ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{42ae35ee-dc97-411c-bcb7-4b0aac8ac8ca}Sexe'],*/ /*characterLimit: 255,*/ /*required: false*/ /*),*/ a!sectionLayout( contents:{ a!columnsLayout( a!forEach( items:local!file, expression: a!columnLayout( contents: { if( a!isNullOrEmpty(local!file), a!richTextDisplayField( value: { a!richTextItem( text: " aucune documents n'est téléchargé" ) } ), a!cardLayout( contents: { a!imageField( images: a!documentImage( document: fv!item ) ) } ) ) } ) ) ) }, ), a!fileUploadField( label: "justificatif de domicile", labelPosition: "ABOVE", value: local!file, saveinto: { local!file, ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{33974cb9-8489-4709-afd2-d96a35ec07c6}files'] /*if(ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{33974cb9-8489-4709-afd2-d96a35ec07c6}files'])*/ }, target: cons!PBYDocs, required: true, validations: a!localVariables( local!invalidExtensions: difference(upper(fv!files.extension), "PDF"), if( length(local!invalidExtensions) > 0, "le type des fichiers doit etre en PDF. Supprimer: " & index(fv!files, "name", wherecontains(local!invalidExtensions, upper(fv!files.extension)), {}), "" ) ), placeholder: "ajouter vos documents ici", /*target: fv!row['recordType!PMSO Speaker.fields.folder'],*/ ), a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextIcon( icon: "info-circle", color: "ACCENT" ), " Vous devez télécharger une version .PDF lisible d'un document fournissant une preuve de votre nom légal et de votre domicile actuelle !" } ) }, height: "AUTO", style: "#f3f5f9", padding: "STANDARD", marginBelow: "STANDARD" ) }, width: "MEDIUM" ), a!columnLayout(contents: { a!columnsLayout( columns: { a!columnLayout( contents: {a!cardLayout( contents: { a!sideBySideLayout( items: { a!sideBySideItem( item: a!stampField( labelPosition: "", text: "1", backgroundColor: if( not(isnull(ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{0399793e-a303-4fd2-8a2f-6136b4bbdf6e}Nom'])), "#8A220C", "#cccccc" ), size: "TINY" ), width: "MINIMIZE" ), a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: { "Nom et prénon valide" }, color: "STANDARD", size: "MEDIUM" ) } ) ) }, alignVertical: "MIDDLE", marginBelow: "STANDARD" ), a!cardLayout( contents: {}, height: "AUTO", padding: "EVEN_LESS", marginBelow: "NONE", showBorder: false ), a!sideBySideLayout( items: { a!sideBySideItem( item: a!stampField( labelPosition: "COLLAPSED", text: "2", backgroundColor: if( not(isnull(ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{ea2a0583-3445-4dd1-b9bf-b090658729ce}DateDeNaissance'])), "#8A220C", "#cccccc" ), contentColor: "STANDARD", size: "TINY" ), width: "MINIMIZE" ), a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: { "date de naissance valide" }, color: "STANDARD", size: "MEDIUM" ) } ) ) }, alignVertical: "MIDDLE", marginBelow: "STANDARD" ), a!cardLayout( contents: {}, height: "AUTO", padding: "EVEN_LESS", marginBelow: "NONE", showBorder: false ), a!sideBySideLayout( items: { a!sideBySideItem( item: a!stampField( labelPosition: "COLLAPSED", text: "3", backgroundColor: if( not(isnull(ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{34b4df1b-b528-4766-9de7-a42bf38ed3c4}NumeroPortable'])), "#8A220C", "#cccccc" ), contentColor: "STANDARD", size: "TINY" ), width: "MINIMIZE" ), a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: { "vérifier votre boite mail " }, color: "STANDARD", size: "MEDIUM" ) } ) ) }, alignVertical: "MIDDLE", marginBelow: "STANDARD" ), a!cardLayout( contents: {}, height: "AUTO", padding: "EVEN_LESS", marginBelow: "NONE", showBorder: false ), a!sideBySideLayout( items: { a!sideBySideItem( item: a!stampField( labelPosition: "COLLAPSED", text: "4", backgroundColor: if( not(a!isNullOrEmpty(local!file)), "#8A220C", "#cccccc" ), contentColor: "STANDARD", size: "TINY" ), width: "MINIMIZE" ), a!sideBySideItem( item: a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: { "vos documents sont bien téléchargés", a!richTextIcon( icon: "grin-beam" ) }, color: "STANDARD", size: "MEDIUM" ) } ) ) }, alignVertical: "MIDDLE", marginBelow: "STANDARD" ) }, height: "AUTO", padding: "NONE", marginBelow: "NONE", showBorder: false )}, width: "MEDIUM" ) } ) }) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label:"S'inscrire", style: "SOLID", validate: true, submit: true, value: true, color: "#8A220C", saveInto: ri!isUpdate, /*onSuccess: a!save(*/ /*local!success, */ /*a!submitUploadedFiles(),*/ /*a!save(*/ /*ri!record['recordType!{72596258-c9fb-4f4f-a5b7-d2eeb5d31c00}PBY accounts.fields.{33974cb9-8489-4709-afd2-d96a35ec07c6}files'],*/ /*fields: {*/ /*files: local!file*/ /*}*/ /*)*/ /*), */ /*onSuccess: a!save(*/ /*local!success, */ /*a!submitUploadedFiles()*/ /*),*/ /**/ /*onError: a!save(*/ /*local!success, */ /*false*/ /*)*/ ) }, secondaryButtons: { a!buttonWidget( label: "Annuler", value: true, saveInto: ri!cancel, submit: true, style: "OUTLINE", validate: false(), color: "#8A220C" ) } ), skipAutoFocus: false ))
even if i use this code i still have the same error