I managed to do it this way, but I'd like to know if there's another way.
1st - Created a hidden input outside the form called not_send.
2nd - In the checkbox, a 'Dynamic Attributes' was set to 'Disabled' when the hidden input not_send is != empty.
3rd - The button on the form was deactivated (type = Submit).
4th - A 'flow' action was added to the button click, creating 4 actions: 1 - Set a value in the not_send input, 2 - Set a 'Wait' of 100ms, 3 - After that, a Run in the Form with a Submit() and a set in not_send with an empty value.
It worked, but I'd like to know if there's a different way because I don't know if this is the best scenario.
When working with checkboxes and saving to a database, I don't use the checkbox itself to handle the data. I always use a hidden text input because I find it easier to handle strings, which is what I use in the backend in these cases.
So in this case, the checkbox is inside the form, but I don't want to send its data, only the text input linked to it.
I've tried using the checkbox directly, but I couldn't get used to it.
You can handle it on the backend, and just leave it there, without effect..
But if you want to avoid the "payload" (what the form sends to the backend) maybe you can remove the name attribute:
Go to the code and delete name="myInput"
What I mean is: There's no problem if you send something to the backend and don't use it later..
You can have a checkbox name="checkbox1" and not insert it anywhere on the API, it's just only "info"
It's the backend itself (and the actions you choose) who takes care about what do to with that "info"
I perfectly understood your suggestion regarding the 'name' attribute.
Regarding handling the data on the backend, I'm treating the sent POST as an array, and within a 'rep' loop I have an update request to the database.
I use this in the creation of dynamic forms on the frontend, so the idea was to reduce the data processing on the backend. I won't handle it because each new field is another iteration of the 'rep' loop.
I apologize if I seem rude or have difficulty explaining something. Unfortunately, in our country we don't have much knowledge of English, so the blame will always fall on the translator...
I'm still learning, I won't always make the best decisions, and English is still a problem for me. The only place I know to ask questions is here in the community.
But I understand, thank you for the clarification.