Task #102330
closed
Select current value in ValuePicker if mode is "replace"
Added by Sascha Egerer 6 months ago.
Updated 4 months ago.
Description
There is a "valuePicker" in TCA where predefined values can be added to a field.
There are different modes (https://docs.typo3.org/m/typo3/reference-tca/10.4/en-us/ColumnsConfig/Type/inputDefault.html#valuepicker) where one of the mode is "blank" which means the value in the field is replaced by the selection.
In this case it would be helpful if the value picker has the item selected that has the same value as the current field value.
This helps a lot if the real value is not a human readable value but the label in the value picker is.
- Status changed from New to Under Review
Hi Sascha, could you check if the linked patch works for you?
Garvin Hicking wrote in #note-2:
Hi Sascha, could you check if the linked patch works for you?
Hi Garvin, thank you for you patch. I'm also already working on it but it's not yet finished. I think it's a bit more complex as it should support the selection on the initial load and could also support the selection if the input field is modified manually.
I'll push my patch later today
Alright, thanks. Sorry, I didn't know you'd be also working on it. But this way we can combine forces, I'll happily abandon mine when you're ready :-)
Garvin Hicking wrote in #note-5:
Alright, thanks. Sorry, I didn't know you'd be also working on it. But this way we can combine forces, I'll happily abandon mine when you're ready :-)
Hey Garvin, sorry it took a bit longer but I've pushed my suggestion. Would be nice if you could review it.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF