When creating a new document that has a uid field that uid field auto-updates with the content from the most recently updated text field until the uid field is manually edited. Is there anyway to set the source field the uid uses to generate its content?
e.g. There are 3 fields on a document, a heading field named title, a uid field and a key text field named author. When you type in the title field the uid will update with the content from that field converted to be url safe. However when you then start typing in the author field the uid will then update its content from this new field. This behavior seems to extend to other field types as well.
This is not expected behavior and makes it very easy to use the wrong slug/uid for the document
Before you initially save the document the UID field will update with the last Title or Rich Text field that you add text to. Unfortunately at the moment there is no way to control which field is used for the UID autofill.
I discussed this with the UX team and they agree that this should be improved at some point in the future.
I have come across an issue in one of the Document Types where every text field (Title or single Paragraph) that I’m using on that Doc Type is updating the Unique ID field. Originally, and on all other Doc Types, only the Title field updates the Unique ID field and I can’t see why it has started to happen to just the single Doc Type.
Has anyone got any suggestions?
I just saw your message as it was in one of the category descriptions.
We’ve discussed what you’re experiencing here. It sounds like the single Doc Type is UID is not updating from the title field as the title field in that custom type is not configured like @jmathew1991 has described.
Let me know if this helps or if you have any other questions.
I have set the “useAsTitle” value to true in the JSON and the issue is still happening. All of the other Doc Types I have created work fine without the “useAsTitle” value being set. It’s just this one Doc Type that I’m finding the issue.
The title is definitely getting updated from the title field but the other text fields within the Doc Type is updating the UID value. I have even set the “useAsTitle” value false on all of the other text fields and the issue is still happening.
Sorry, I’ve just seen this. Looking at the video above, you aren’t entering the “Short Summary” field. If I enter in the title the UID gets updated (correctly). But, if you enter a short summary the UID gets updated, which isn’t want we want to happen.