Forums

send/closest:.ui.form and other functions

vismay 10 Jul, 2017
Hello,

to me is not clear all this dynamic functions!

Basically I load a table where I have a text field editable that overwrite a field in database.

Ok, I can build everything more or less by using demo template.

But I don't manage to build a button after the text element that fire dynamically the function save to database.

If I use send/closest:.ui.form and replace/closest:.ui.form somehow it works but it takes the values of the last text field.

So I could imagine that there is a command like send/this:.ui.form or send/this:FIELD
Max_admin 23 Aug, 2017
Hi vismay,

Apologies for the late reply!

What are you trying to do exactly ?

send/closest:.ui.form

Means to post the inputs of the closest .ui.form element when making the request.
replace/closest:.ui.form

means to replace the contents of the closest .ui.form element with the request response.

The "closest element" means that the closest parent matching this CSS selector.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.