This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Sevenface
Sevenface

Hi there,

i have the contact plugin und the user plugin installed and want a Form that creates a User and sends a Message. Is that possible with two data-requests?

<form role="form" data-request="onRegister" data-request="onContactSent" data-request-update="'confirm': '.confirm-container'" data-request-success="$('#form-contact').slideUp(1000)" id="form-contact">

Thanks for your answers.

Troiscent
Troiscent

+1 for an answer to this, this is undocumented.

Tschallacka
Tschallacka

data-request-success="$(this).request('onContactSent')"

fredericomarinho16918
fredericomarinho16918
fredericomarinho16918

Tschallacka said:

data-request-success="$(this).request('onContactSent')"

This solution calls my method infinite times. How can we call just once?

Tschallacka
Tschallacka

Override the success handler like so:

 data-request-success="$this.request('onContactSent',{success:function(){}});"

Last updated

1-6 of 6

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.