I need to reset a custom form after submit(update current record) to allow saving data of a current record and then opening a new record into which new data can be written.
Upon opening the screen with the custom form i create a new datum. Then i use a combination of toggles and dropdowns to update the current record. My submit button includes updating the current record with dropdown selections and then an action to create a new datum.
I expected that creating the new datum would result in the “new” datum being the current datum into which i could then directly enter new data: however, the new inputs overwrite the “previous” current record and the new record remains blank…Any suggestions on how i can correct this?
I was able to reset the custom form by adding a navigation button to my home screen and then navigating back to the custom form. I just do not want to have to leave the custom form to create/update datums.
@christopherHupp, why you not adding the create datum action directly on the submit button instead of creating the record when entering? Ok let’s say, If we keep that same setup and why you need to create a new record after update? After update it should link back right? Could you add some screenshots and explain your process?
this is a data entry form for rapidly inputting multiple datums(records) into the database. After updating data in the current record in the database, i need to create a new record and update the new record with new data. flow is:
Create new datum upon selection of navigation button on menu screen
navigate to form
Select from several drop downs
update current datum using buttons.
Use submit button to update current record with dropdown selections and create new datum.
Select entries and activate buttons to update current record (one created in step 5)
repeat
i thought that by creating a new datum, the new datum would become the current datum. However, even though there is a new datum, any entries i subsequently make using the form (step 6) overwrite the record created at step 1; the new datum properties remain empty. I do not see how i can get the form buttons/dropdowns to update the new datum without exiting and reentering the form.
So yeah, when you create a datum record before the screen that data passing to that screen. So then in the form screen you get that current datum data which you can then update that record’s properties but every time you click the button, that already created datum record updates and it creates a record in datum collection. ( not sure how your create action has been setup-ed but I guess you have made all properties blank like before screen create action, so if you have added inputs and dropdowns values directly from other components section with magic text then that new record should have that data. )
So instead of creating the datum record before screen, add the create datum record on the submit button located in the form screen and remove that update action. Then it don’t update any record and just create new records with the data you entered and selected on the inputs and dropdowns. With your above method it keeps updating the already created record because current datum data don’t replace with that create action’s datum data added on the submit button.
Thanks again dillon for the assistance. I used your guidance combined with using logged-on user to record inputs from the form’s buttons. Upon selecting the submit button, the new record is written using the selections from the dropdowns on the form and the button values saved to the logged-on user.
This approach required that i add attributes to the user collection that correspond to the attributes on my collection. Works now as desired.
Your welcome! Ah so to save the button values ( Is it actions with buttons or do you mean toggles?) you created the record first. Yeah, that’s a good way but for your case since you need to create many records with different data at the same time, that option is not good. When that happens storing data in a user record which you discovered or in a input is great!