Default value in form is lost

Hi,

I have create a form to add records (for example trading cycles).
Each cycle has a column of stock and a column of cycle (number).
So in the stock details screen I have created a navigation button to the “Add cycle” form and defaulted the stock to the current stock data I am in.
Everything looks good, but when I type the cycle number in the form - the defaulted stock value disappears.

Any idea why?

I have made a screen recording to demonstrate the issue:

Thank you!

I’m guessing your Cycle Number entry is pointing to the same column that the Stock column is writing to. Can you show how the form is configured?

I now notice that it does not allow me to select a column from the cycle table to write to… It only allows columns from the user table from some reason:

The source table is the stock table but I want to write to the cycle table.

Then that means your form is not configured to write to the correct table. Change the table the form writes to.

I think I found how to do that but the problem is that when I add a stock I want to add it to the stock table, but by clicking this button placed in the stock details I wanted to navigate to a form that will write to the cycle table…

A form can write to any table you want. You just need choose the correct destination table.

Also, your form doesn’t need a choice component for the stock. You can automatically pass it through the form as a column value component. Just add it like any other component and choose the component that contains your stock value.

3 Likes

Thank you. Jeff.
To be honest, I am not quite sure what I did but your instructions helped me in the right direction and it is working now!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.