SharePoint 2016 on-prem
Hello,
The SharePoint instance is on a private network so I'm not able to provide links or show screenshots.
A new requirement was submitted which basically sets a default value for a field (PR Asset) at item creation - by default, all items are created with '(I)' at the beginning of the item Name field: (I) example document.docx, for example.
At the item properties window, the user can change the default (I) setting for PR Asset to one of several other choices: (D1), (SAM), (ITOP), or (LS1T). Additionally, a Nintex Regex control strips out any spaces included by the user. At creation, the above document would appear in the library like this: (I)_example_document.docx.
If the user changes the PR Asset field away from the default (I), the Name field is expected to update to something like, (ITOP)_example_document.docx; however, when a new PR Asset value is chosen, the new value simply gets appended to the left of the previous value: (ITOP)_(I)_example_document.docx.
I need help figuring out how to strip out the (I)_ from the beginning of the item Name and replacing it with the newly chosen value; then, if a different value is chosen at any time, the workflow needs to strip out the older value and replace it with the new.
Any ideas? Thanks in advance.