Pass a form field value to {data:} from a list taskbutton

Natalini 31 May, 2017
Hi all,
in an index view I have a form with 2 fileds (date and text) without submit button, but with required fields and pattern.
after this I've a table list with the rows of data and in every row I've added a taskbutton.

I'm searching how to pass the form value, with also the rowdata value to another view by clicking the taskbutton.

I've just watched the "dinamic action" example but didn't find a way to do this.

thanks for any help.
Max_admin 31 May, 2017
Hi Natalini,

In order to pass some values, they should be part of the same form element, the table view itself has a form tag around it unless you disable this option.

you can keep everything in one form and give the button a name which is related to the row, then check the button name after submit and get the values of the desired row only.

Overall this task is not straight forward.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Natalini 31 May, 2017
Ok, so i put date and value on every row.. but I don't know how to

check the button name after submit and get the values of the desired row only.



in my taskbutton URL parameter I've wrote
idx={var:list_name.row.model.id}&myval=??&mydate=???....


in the name of edit filed I've wrote
myval[{var:list_name.row.model.id}]

as I saw on "dinamic action".. but I'm not sure I'm going the right way.

There is any other example to study?

thanks a lot
Marco
Max_admin 01 Jun, 2017
Answer
Hi Marco,

What you are trying to do here is a bit complicated, it can be done but its not the easy way to do it.

Why don't you check the demo of dynamic actions and show a popup with the fields you need when the task button is clicked ? the user can then fill the popup form and send it using a button in the popup too.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Natalini 01 Jun, 2017
1 Likes
Good idea! I'll try.
Thanks a lot.

Ciao
Marco
This topic is locked and no more replies can be posted.