Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 07/12/2023 12:19:29
|
jbaur
Joined: 14/02/2023 09:38:42
Messages: 3
Offline
|
We have a certain use-case which many of you probably know. We have grids that hold documents in which rows you can also edit certain attributes of the document, for example the name of the document. The name of the document is inside a t:field component and a user can edit the name just by typing in the field. Now we have the problem, that a user can edit a document name and also delete the data type suffix of the document name on accident. Now of course you could hide the suffix from the user, add it again if it gets deleted, etc. Those solutions are possible, but not preferred by our clients. They would like the document name to be visible as is but the suffix of the name should be impossible to edit, aka you cannot highlight the suffix by any means.
Is this possible to achieve somehow? That the value shown is the complete name but once you want to edit the name it changes to a name without the suffix?
|
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 07/12/2023 12:34:00
|
CaptainCasa
Power User
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.jpg)
Joined: 21/11/2007 12:23:06
Messages: 5519
Offline
|
HI,
status quo: not possible.
Always the full text of a field is editable.
Could you please check the following: the FIELD has a property UNITTEXT. Typical use case is: you define a value, and the unit of the value is shown as part of the field (and not as extra label).
I could imagine that this is also some nice solution: put the suffix into the UNITTEXT. (I am glad that you talk about a suffix and not a prefix...)
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
![](/forum/templates/default/images/spacer.gif) |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 19/12/2023 08:25:52
|
jbaur
Joined: 14/02/2023 09:38:42
Messages: 3
Offline
|
That is a good option, we'll check with our client to see if they are satisfied with it. Thank you so much for your input!
|
|
![](/forum/templates/default/images/spacer.gif) |
|