jsonComboBoxField field with queryparam from input

14 views
Skip to first unread message

Christoph Damm

unread,
Dec 1, 2025, 8:53:33 AM (14 days ago) Dec 1
to Magnolia User Mailing List
Hello,
I have a simply rest api which lets say takes a query param (text) as input.
I've set this up as restclient already, which works ok.
However, if it is possible to configure a textfield (well a jsonComboBoxField) so that the input the user gives is taken as query param of the rest call.
From a (only short) look at the code i don't think this is possible out of the box.
In addition would be nice to only show options after x characters.
What would be the best approach? Enhancing the above? Own javascript ui field?(couldnt use the rest client in there obviously).

Thanks and regards,
Chris

Mykola Soldatenkov

unread,
Dec 1, 2025, 9:08:02 AM (14 days ago) Dec 1
to Magnolia User Mailing List
jsField already supports restClient integration
I would say, if you comfortable with html + js + css and if you have DX Core, jsFields would be best fit. You can implement custom logic, as well as query, and filtering/masking, etc

-- 
Powyższa wiadomość wraz z ewentualnymi załącznikami jest przeznaczona wyłącznie do wiadomości osób lub podmiotów, do których jest w sposób zamierzony zaadresowana. W przypadku otrzymania powyższej wiadomości w wyniku pomyłki, prosimy o pilne powiadomienie o tym fakcie nadawcy oraz o usunięcie wiadomości z systemu, a także o nie rozpowszechnianie treści w niej zawartych. Otrzymanie powyższej wiadomości nie może stanowić podstawy do jakichkolwiek zobowiązań nadawcy tej wiadomości wobec osób nie będących jej zamierzonymi adresatami. 
This e-mail message and any attachments is intended solely for the use of the persons or entities to whom it is intentionally addressed. If you have received this message in error, please notify the sender about this fact immediately and delete it completely from your computer system. Please do not disseminate this message unless you are the intended recipient of it. This e-mail message shall not create any legal obligation on the part of the sender to persons who are not intended recipients of it.

--
You received this message because you are subscribed to the Google Groups "Magnolia User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to user-list+...@magnolia-cms.com.
To view this discussion, visit https://groups.google.com/a/magnolia-cms.com/d/msgid/user-list/CAGgPrdjnSuOcEX9e5SniLR20xOZERWjWgcY%3DQi_pPzDcTqc5FQ%40mail.gmail.com.

Roman Kovařík

unread,
Dec 1, 2025, 9:09:27 AM (14 days ago) Dec 1
to Magnolia User Mailing List, christo...@gmail.com

Hi Chris,

It should be possible to call REST clients from JavaScript fields as well, although it might be unnecessary. Actually, JavaScript is the recommended way to implement custom fields starting with Magnolia 6.4.
Docu link

Hope that helps, Roman

Reply all
Reply to author
Forward
0 new messages