Hi @Hern-ec53, happy to help!
Yes, you can write multiple rows to a table or different tables by adding another action to the automation:
For your case, you can also specify in the run options, to only add another row if the additional data cell has a selection (is not blank). This is how it would look:
Here's a screen with two fields for users to select an option and a screen variable which will be used for hiding or showing the second selection field. I set the initial value to FALSE as shown:
The visibility of the block with the second selection is set to the value of that variable:
The Add button updates the value of that variable to TRUE if clicked (to display the second selection):
I also added a remove button, which does the opposite (sets it to FALSE):
Now you can set up your automation to write a row for the first selection, and then conditionally write a row for the second selection, if it is not blank:
Hope this helps, and let us know if you have any other questions!