0

Clear select field

Hi !

I have a selection field named "Abonnement ou pack prépayé" which is a mandatory field and which is only displayed if another yes/no field named "Prestation vendue en forfait" has a true value.

Sometimes we make the mistake of putting yes in the field "Prestation vendue en forfait" which displays the second field "Abonnement ou pack prépayé" that we select with a value of 1 or 2 because it is mandatory.

I would like that when the yes/no field is set to no again, the second field "Abonnement ou pack prépayé" removes all the values already checked. Is it possible ?

The checked value of the "Abonnement ou pack prépayé" field involves other processes in my tables and this is why I have to delete this value when it should not be displayed.

Thank !

2 replies

null
    • Kruna
    • 1 yr ago
    • Reported - view

    Hi Sebastian,

    I am not sure if I got you, but cant you just uncheck the yes/no field, put it to 'no'?

    you can add an button and put the following code:

     

    for i in select TableName do
        i.('Abonnement ou pack prépayé' := null)
    end

      • Créateur de bien-être
      • Sebastien_Guillet
      • 1 yr ago
      • Reported - view

      Kruna Thank you for your feedback but I will not be able to because I absolutely need this intermediate step. From other posts, I was able to take ideas and this is what I managed to do to delete the selected data : Trigger after change

      if 'Prestation vendue en forfait' = false then
          'Type de forfait' := null
      end
      

Content aside

  • Status Answered
  • 1 yr agoLast active
  • 2Replies
  • 64Views
  • 2 Following