Log in

View Full Version : Combobox



Mephisto
July 18th, 2025, 10:32
Using the latest beta release, I'm struggling with a comobox and "source". In XML, the comobox is setup like this
<combobox_content_column name="zodiac" source="background.zodiac" />

Despite the "source" defined, the data will be stored right under the character path in the DB, not in the "background" section, whereas
<string_content_columnh name="species" source="background.species" />
will save in the background section of the character in the DB.

What am I missing? :)

superteddy57
July 18th, 2025, 16:30
Need to use tags for sources with comboboxes.

<combobox_content_column name="zodiac">
<source><name>background.zodiac</name></source>
</combobox_content_column>

Mephisto
July 18th, 2025, 16:42
Thanks a million! Anywhere where this is documented?

superteddy57
July 18th, 2025, 16:53
No, this is a CoreRPG template and those tend to not get a huge break down like base elements. Once it's closer to it's final form I would say you should see more explanation in the guide.

https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/2179694626/Developer+Guide+-+Historical+Change+Guide

Moon Wizard
July 18th, 2025, 17:53
XML "attributes" are not accessible to scripts, only XML "tags". Since combobox is a template (and not "built-in" to the client), it has to use tags to get the data as a workaround.

Regards,
JPG