Hi,
I have a form with various fields enabled for users inputs. Values for two of the fields, submitted on and submitted by, are disabled for users and will be captured through functions. Functions i am using are today() and loggedInUser(). These work at the interface level ans show current date and users name every time the form is displayed. However, the values are not stored/written to the database after submission. They do not display in the records view either.
I have configured the appropriate data type in the save input to parameter as well. How can i fix this?
Discussion posts and replies are publicly visible
You cannot capture this information on the form -- you will need to use a script task to capture.
Here is documentation on the script task: https://docs.appian.com/suite/help/19.2/Configuring_the_Script_Task.html
You will want to configure your functions like today() and loggedInUser() in the outputs section, and save them to a process variable field that can then write the data entries to your data store.
I don't exactly agree that this form "cannot" be captured on-form - there might be advantages in some use cases to capturing it in-process as you describe, but there are also advantages to doing it on-form in certain situations; and either way, it is most certainly possible to do so when needed - just that it needs to be done in a particular way that a lot of new users might miss (putting it in saveIntos, etc).
Apologies, maybe I misunderstood. Is the goal not to persist this information to a datastore, but rather to have it displayed while the user completes a form?
My assumption is that he's wanting to construct a CDT of data including some user-entered data and some automated data (like the user's username) within a SAIL form, pass it back into a process, then write it to a data store. But I'm a bit unsure due to the vagueness of the original post - hence why the next step is really to have the user post more details (sail form code, confirm the process flow, etc).
The idea is to pre-populate these values while user fill rest of the fields and also write these values to the data store to be displayed in the records section once submitted