Problème avec INPUT

Bonjours j’ai un problème avec les balise Input. Lorsque je veux créer un New-UDInput pour pouvoir créer une sorte de formulaire qui emmène a de nouvelle page lorsqu’il valide une action, cela n’affiche rien, peut être des module a y installez ou autre choses.
Merci pour vos réponse.

can you post your code example ?

New-UDDashboard -Title “Forms” -Content{

New-UDInput -Title "User Data" -Endpoint {
    param(
        [Parameter(HelpMessage = "Favorite fruit")]
        [ValidateSet("banana", "apple", "grap")]$InputField

        )
    New-UDInputAction -Content @(
        New-UDCard -Title $InputField
    )

}
}

Bonjour voici un nouveaux code que j’essaye de faire marcher mais impossible,il ce passe la même choses, rein ne s’affiche:

`New-UDDashboard -Title “Incident” -Content {

New-UDInput -Title 'Input' -Content {
param(
    [Parameter(HelpMessage ="Choisisez la nature de votre probleme")]
    [ValidateSet("Impression", "Réseaux", "Bureautique", "Logiciels", "Materiel", "Mobilité")]$TextField
    )
New-UDInputAction -Content @(
        ######################################## Interface Impression ######################################
    if($TextField -eq "Impression") {
    New-UDCard -Id 'Impression'-Title $TextField -Content{
    New-UDTypography -Text  'Expliquez nous votre problème avec un commentaire : '
    New-UDForm  -Content {
      New-UDTextbox -Id 'TextCommentaire' -Label 'Un commentaire'} -OnSubmit {
    
          Show-UDToast -Message $EventData.TextCommentaire -BackgroundColor red -MessageColor white -Duration 5000 -TransitionIn bounceInRight
          New-UDTypography -Text "Merci pour votre coopération !!"
        }
    } 
}        
    ######################################## Interface Reseaux ######################################
    elseif ($TextField -eq "Réseaux") {
            New-UDCard -Id 'Réseaux'-Title $TextField -Content{
                New-UDTypography -Text  'Expliquez nous votre problème avec un commentaire : '
                New-UDForm  -Content {
                  New-UDTextbox -Id 'TextCommentaire' -Label 'Un commentaire'} -OnSubmit {
                
                      Show-UDToast -Message $EventData.TextCommentaire -BackgroundColor red -MessageColor white -Duration 5000 -TransitionIn bounceInRight
                      New-UDTypography -Text "Merci pour votre coopération !!"
            }
        }
    }     ######################################## Interface Bureautique ######################################
    elseif ($TextField -eq "Bureautique") {
        New-UDCard -Id 'Bureautique'-Title $TextField -Content{
            New-UDTypography -Text  'Expliquez nous votre problème avec un commentaire : '
            New-UDForm  -Content {
              New-UDTextbox -Id 'TextCommentaire' -Label 'Un commentaire'} -OnSubmit {
            
                  Show-UDToast -Message $EventData.TextCommentaire -BackgroundColor red -MessageColor white -Duration 5000 -TransitionIn bounceInRight
                  New-UDTypography -Text "Merci pour votre coopération !!"
        }
    }
}    ######################################## Interface Logiciels ######################################
elseif ($TextField -eq "Logiciels") {
    New-UDCard -Id 'Logiciels'-Title $TextField -Content{
        New-UDTypography -Text  'Expliquez nous votre problème avec un commentaire : '
        New-UDForm  -Content {
          New-UDTextbox -Id 'TextCommentaire' -Label 'Un commentaire'} -OnSubmit {
        
              Show-UDToast -Message $EventData.TextCommentaire -BackgroundColor red -MessageColor white -Duration 5000 -TransitionIn bounceInRight
              New-UDTypography -Text "Merci pour votre coopération !!"
    }
}

} ######################################## Interface Materiel ######################################
elseif ($TextField -eq “Materiel”) {
New-UDCard -Id ‘Materiel’-Title $TextField -Content{
New-UDTypography -Text 'Expliquez nous votre problème avec un commentaire : ’
New-UDForm -Content {
New-UDTextbox -Id ‘TextCommentaire’ -Label ‘Un commentaire’} -OnSubmit {

          Show-UDToast -Message $EventData.TextCommentaire -BackgroundColor red -MessageColor white -Duration 5000 -TransitionIn bounceInRight
          New-UDTypography -Text "Merci pour votre coopération !!"
    }
}

} ######################################## Interface Mobilité ######################################
elseif ($TextField -eq “Mobilité”) {
New-UDCard -Id ‘Mobilité’-Title $TextField -Content{
New-UDTypography -Text 'Expliquez nous votre problème avec un commentaire : ’
New-UDForm -Content {
New-UDTextbox -Id ‘TextCommentaire’ -Label ‘Un commentaire’} -OnSubmit {

          Show-UDToast -Message $EventData.TextCommentaire -BackgroundColor red -MessageColor white -Duration 5000 -TransitionIn bounceInRight
          New-UDTypography -Text "Merci pour votre coopération !!"
    }
}

}
)
}
}
`

Bonjour again @bob2105 just a little favour to ask when posting code. If you use x3 ` then make that like
``

``
but with one addition ` it will create a code block

then everything inside those quotes appears as code makes it so much easier to read

Anyways seems like you are having a hard time, so as mentioned in my previous reply I have a lot of blogs with complete code examples:-

So maybe follow along with this blog to get inputs working.
I uploaded an entire UD project I built to record vehicles on a dedicated DB and that is here:-

Just thought this gives you a good few examples to look at. I hope this helps, if not any chance you can post in English what you after, for us simple folk who only speak one language :slight_smile: