You can pass the tagname via dlgitem_set_value(window, dlgitem, value); with the following parameters: window: the windowID of your XUI dialog (generated via window_create(); dlgitem: the name of the XUI-Item to fill with your value (defined in the xui-file) value: the name of the tag.