I want to understand well how the action buttons work. The explanations provided in Essential don’t help me get into a more specific dynamic and before asking for your help, I want to study better.
I want to determine values of a function “income” and “expense” based on the button that is pressed.
I’m not a programmer and therefore I’m not familiar with coding. However, if I have understood correctly, in the formula that I have to use to determine the “stock” value, it is possible to insert an “if” condition which reads the choice made on the buttons and chooses to apply a “subtraction” or an “addition” to a value in “stock”.
For me it sounds you are looking for an app formula calculating those values on a form view depending on the dropdown selection instead of action doing something similar. Is my assumption correct?
On your printscreen, the Rifornimento_Form has an Enum button where you select either “Cisterne” or “Veicolo”. Depending on the selection, you would like to calculate a value. Do you want to calculate it when the form view is still open?
I apologize I am giving incomplete information. The previous answer is valid, but I need to get a “conditional view” on the form while it is still open. That formula you see gives me the result I want, however filling out the form is messy. The operator must “skip” the fields that are not needed. I hope I have given a clearer answer. Thanks for your attention.
So.. you actually want to hide or show columns depending on the dropdown selection. For that purpose you need to use the " Show If" option. For that purpose you can write for example [seleziona ambito]=“Rifornimento cisterne”
HI @AleksiAlkio .Thanks for the time you dedicated to me. I’ll get to work on the solution you’re proposing. I will be sure to update you on the outcome of my work. Thanks again!!!
HI @AleksiAlkio .I’m definitely making a mistake. I’m close to what I want to visualize, but I have a problem on this field. He should be seen if one of the conditions seen in the photo exists. Unfortunately it doesn’t happen. What am I doing wrong?