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

voidshah
voidshah

How can I refresh field's (without full form refresh ) data after the updating form is saved? For example, I have two form fields: param1 - is present in the model param2 - is not present in the model, it purged and will not be saved to the database when a model is created or updated.


        param1 :
            type: partial
            span: left
            disabled: true

        param2 :
            label: Add some data
            type: textarea
            span: right
            size: giant

In the formBeforeSave method (after click "Save" button on the update controller) I make some manipulation with data from param2 and than assign a new value to the $model->param1 Model is saved, but field param1 is not refreshed.

I think that I should use AJAX, but I don't know how...

Sorry for my english.

1-1 of 1

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