Hello,
I am a PowerApps beginner and I struggle to automatically generate an ID, which starts with a prefix.
Background is that I have a screen which is a new inspection form where the user can enter his findings. The form includes different data cards but the ones that are currently interesting for me are the following:
Component (Dropdown list) with the following entries:
A: Module1
B: Module2
C: Module3
😧 Module4
ID (Text input):
Here I want to generate the automatic ID in the following format:
Split(Dropdown.Selected.Value, ":") and 00xx
For example, if my list looks like:
| Component | ID |
| A: Module1 | A001 |
| C: Module3 | C001 |
| A: Module2 | A002 |
| A: Module2 | A003 |
| 😧 Module4 | D001 |
If the user enters a new finding and selects from the Component dropdown list: "A: Module1", I would like the ID "A004" to be automatically generated and visible in my Text Input ID (user should not be able to edit it).
If user chooses from the dropdown list "C: Module3", then "C002" should be generated, etc.
There are two steps to generate my ID, the first one being the split of dropdown.selected.value on ":" to keep only the first left character, the second being the incrementation but despite trying, I couldn't find a way to code it properly...
Any help would be very much appreciated 🙂