Hello! If I set a column to be editable, it will appear on my add form (action), although some columns I have are editable after being added and some others are not, I even have two columns that are identically designed although one is editable after the data is added and the other one is not.
I need the users to be able to add data to a specific column, but then not be able to edit it after is added. How can I do that?
Thanks in advance.
Solved! Go to Solution.
To allow the user to add a value only when the row is first created, but not when edited later, set Editable? to the expression:
NOT(IN([_ROWNUMBER], table-name[[_ROWNUMBER]))
replacing table-name
with the name of the table.
To allow the user to add a value only so long as the column does not already have a value, set Editable? to the expression:
ISBLANK([_THISROW_BEFORE].[column-name])
replacing column-name
with the name of the column. Note that _THISROW_BEFORE is relatively new and may not yet be available to all app creators. If you find that the case, I can provide an alternative.
To allow the user to add a value only when the row is first created, but not when edited later, set Editable? to the expression:
NOT(IN([_ROWNUMBER], table-name[[_ROWNUMBER]))
replacing table-name
with the name of the table.
To allow the user to add a value only so long as the column does not already have a value, set Editable? to the expression:
ISBLANK([_THISROW_BEFORE].[column-name])
replacing column-name
with the name of the column. Note that _THISROW_BEFORE is relatively new and may not yet be available to all app creators. If you find that the case, I can provide an alternative.
Thanks Steve. To add to this query, how do we give the right to admins to edit after submission of a data row and not give this right to everyone else. The admins email ids are listed in a separate data table. Thanks for your solution in advance.
Please start a new topic for your question. Please also consider using the community's search feature, as this topic has been addressed many times.
it seems this solution does not work with the new desktop UI.
is there an expression which would allow same functionality with the new desktop?
Desktop View is currently a preview feature and under active development. Preview features are not yet suitable for use in important apps. Until it has achieved greater stability, I recommend against using this preview feature except for testing and to help the AppSheet developers in their efforts. To follow the progress of and contribute to the development effort, please visit this dedicated Community topic:
This solved my problem, I used the first option. Thank you Steve.
User | Count |
---|---|
41 | |
28 | |
28 | |
23 | |
13 |