Is there a way to make this field dynamic? I want to be able to change both the field name and data with two inputs. ![]()
No. What are you actually trying to do? There’s likely a much more straight forward way (e.g just use two actions with a condition, one for each)
Why do you want to change the field name? The field name is only seen by the developer, not the user. Only thing that can be dynamic is value and it’s the value that users see.
When I have an app update and add a new field (such as today) I want to be able to dynamically identify the new field and the data I want and apply to all users without having to code the new field every time.
If you share the specific example, the forum will point you towards the right route. But, your current approach is definitely not going to be the right one and implies a fundamental data architecture issue
What you are looking for is a dynamic label table mabel …
table: user-dynamic-data
field: user, type user
field: label-name, type text
field: data-value, type text
field: data-type, type text or option set, optionally used to constrain/convert to number
There are some disadvantages:
- Have to do more runtime constraints and conversions
- Messier data structure
- Each additional field needs to be of the same data type, and associates with the same label-name
- DIY checking to avoid duplicate label names for same user
Edit - another option is to use JSON and one of the plugins to convert to and from text. Similar disadvantages apply
Edit 2 - added the user field
Edit 3 - added check for dup labels
Whenever you add a new field to the user data type, you can run a backend workflow through bulk update to set the new field value for each user in data type.
