OnClientGuiSubmit
Jump to navigation
Jump to search
onClientGuiSubmit
Triggered when a resource-owned RmlUi form or input is submitted.
Availability
This event is available in client-side scripts.
Callback signature
onClientGuiSubmit(documentId, elementId, value)
Parameters
| Name | Type | Description |
|---|---|---|
documentId |
string |
The resource-owned RmlUi document ID. |
elementId |
string |
The source element ID. |
value |
string |
The element value at dispatch time. |
Examples
Handle the event:
addEventHandler("onClientGuiSubmit", resourceRoot, function(documentId, elementId, value)
outputDebugString("onClientGuiSubmit: " .. documentId .. "/" .. elementId .. " = " .. value)
end)
Notes
- The event is delivered only to the client resource that owns the document.