-
I need to have a disabled field containing autogenerated unique ID when the form is opened. The user needs this ID when they are filling the form. E.g. ID-1, Name: foo, Reason: bar, ... ID-1 is needed before the form is closed, as the user needs to attach a scanned document with this ID handwritten on. Is there any way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
Hi, Thanks @mjashanks 👍 I managed to get mine working a few minutes before your reply so did not have chance to reply here yet. Also,, I have not had time to test it thoroughly, but at least for 20-30 tries it worked perfectly. My steps:
Now the table containing the setup value has always the next value which is shown on form when button is pressed. I will probably try to generate the unique-id based on few values entered to the form and when generate button is pressed, it opens up the remaining values. I wonder why it does not fetch the new value saved to the database when update state is used? I tried using refresh data provider as well, but no avail. |
Beta Was this translation helpful? Give feedback.
Hi There.
This is possible, here's how I did it. (also, my app export is attached below).
I have a table called
Applications
- it has anAuto ID
column. I.e. and auto incremented number. Your table might already have it, if you left the defaults checked on creation:In the design section, I add a new screen and choose my table
Applications
, which auto-generates 3 screens for me.In my
/applications
screen, I modify theCreate New
button, so that itSave Row
to my application tableNavigate To
the URL/application/{{ Action 1.Saved Row._id}}
/applications/:id
), I added a paragraph component at the top to display myAuto Id
fieldSo, …