wire:submit
Basic Usage
// wires/ContactForm.bx
class extends="cbwire.models.Component" {
data = {
"name": "",
"email": ""
};
function submit() {
// Process form (simulate processing)
sleep(1000);
// Reset form
data.name = "";
data.email = "";
}
}// wires/ContactForm.cfc
component extends="cbwire.models.Component" {
data = {
"name" = "",
"email" = ""
};
function submit() {
// Process form (simulate processing)
sleep(1000);
// Reset form
data.name = "";
data.email = "";
}
}What wire:submit Does
Available Modifiers
Was this helpful?