prompt.OnFulfill.Connect((accepted: boolean,payload?: PromptPayload) => {
if (accepted && payload) {
print(payload.promptContent);
}
});
Assuming we had a Prompt with a ScrollingFrame as the Content and it contains 1 TextLabel named 'Money' and 1 TextBox named 'Nickname'
Your output would look like this
{
["Money"] = "350",
["Nickname"] = "Jen"
}
Generated using TypeDoc
The PromptPayload that is sent during accepted fullfillment of the prompt.