I have a form to create a new or select a “Recurring Activity”. Once the user submits this form I want it to auto-populate some of the fields of a new “Activity Entry” form. I understand that in order to have a “Default value” field in a Choice Component it has to be in a Form Container. Two of the fields that I want to auto-populate are in the Choice Components.
The problem I am having is that one of the Choice Components is dependent on the other “Parent” component. I believe that the Parent component does not immediately write to the table when a selection is made, so my dependent Choice Component does not know which “Sub-Activities” to display.
I need to either find a way to make the dependent Choice Component work properly or find a different way to auto-populate the “Activity Entry” form. I am also open to any other creative ideas.
Than you in advance!
Kris
The normal form has this option as well.
Do you mean these are two separate forms?
The normal choice component has a “Default value” option? Originally I had a container that held the choice components and I was able to have the dependent choice component work properly, but the issue was is that I could not auto-populate those fields because there was no Default value section to capture the data from the “Recurring Activity” form.
Yes, these are two separate forms. One screen with a Recurring Activity form and another screen with an “Activity Entry” form.
But you raise a good point. Maybe I should have it all on one screen with an option to select or create a “Recurring Activity” on the same screen. Would this solve the issue?
Sounds like you’re not having a normal form, but a “custom form” (as in having entry components on a details screen)?
There’s an “Open Form” action if you want to explore that option, but form container would do as well, if you need it on the screen opposed to open a new screen.
That looks like a custom form to me, meaning you are adding entry components on top of a details screen and then use an add row action to “submit” the form. Is that correct?
Thank you for the reply ThinDinh!. Yes, you are correct about that. Is there a better way to do it?