Forums

back button?

salvok5 03 Feb, 2017
hi, Max
I tell me how do I go back to the previous page with a button placed in the form?
Max_admin 03 Feb, 2017
Hi Salvo,

You need to use a "Button link", and in the "link" field put the link you want, you can also use this:

{url:} // for the connection url


{url:event} //for the url of some event

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
salvok5 04 Feb, 2017
"Button link" ???
Where is ??
Max_admin 04 Feb, 2017
Hi Salvo,

This is inside a "form" view in Connectivity v6? if yes then you can use the "Button link" element under the "Fields" view.

Or where exactly do you want to use this link ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
salvok5 04 Feb, 2017
I have to return to the previous page and put view_sottogruppo event with the parameters gr= and st =
<a class="blue ui button" id="button_link1" href="index.php?event=view_sottogruppo&gr=&st=">Indietro</a>
salvok5 04 Feb, 2017

Array
(
[richiama_atto] => Array
(
[log] => Array
(
[0] => SELECT COUNT(`docu`.`ID`) AS `docu.count` FROM `docs` AS `docu` WHERE `docu`.`ID` = '13513';
[1] => SELECT `docu`.`ID` AS `docu.ID`, `docu`.`ID_REG` AS `docu.ID_REG`, `docu`.`INT_NUM` AS `docu.INT_NUM`, `docu`.`SECT_NUM` AS `docu.SECT_NUM`, `docu`.`SECT_NUM_DATA` AS `docu.SECT_NUM_DATA`, `docu`.`PROTO_NUM` AS `docu.PROTO_NUM`, `docu`.`PROTO_DEL` AS `docu.PROTO_DEL`, `docu`.`DECORRENZA` AS `docu.DECORRENZA`, `docu`.`SCADENZA` AS `docu.SCADENZA`, `docu`.`TITOLO` AS `docu.TITOLO`, `docu`.`SOMMARIO` AS `docu.SOMMARIO`, `docu`.`GRUPPO` AS `docu.GRUPPO`, `docu`.`TITOLO_SECT` AS `docu.TITOLO_SECT`, `docu`.`ENTE` AS `docu.ENTE` FROM `docs` AS `docu` WHERE `docu`.`ID` = '13513' LIMIT 30;
)

)

[read_files_id] => Array
(
[log] => Array
(
[0] => SELECT COUNT(`files`.`ID`) AS `files.count` FROM `files` AS `files` WHERE `files`.`ID_REG` = '201794';
[1] => SELECT `files`.`ID` AS `files.ID`, `files`.`ID_REG` AS `files.ID_REG`, `files`.`FILENAME` AS `files.FILENAME` FROM `files` AS `files` WHERE `files`.`ID_REG` = '201794' LIMIT 30;
)

)

)


Also entering:
&gr={var:richiama_atto.row.docu.GRUPPO}&st={var:richiama_atto.row.docu.TITOLO_SECT}

not work.
salvok5 04 Feb, 2017
If I click on the button "back" of the programm "internet explorer", comes back to me correctly on the previous page.
Max_admin 04 Feb, 2017
Hi Salvo,

The {url:} syntax will only accept event names, so a view name will not work.

You can do this any of the following, in the "Extra attributes":
href:index.php?event=view_sottogruppo&gr={call_anything_here}


or in the "Link" field:

{url:event_name}&gr={call_anything_here}&st={something}


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
salvok5 04 Feb, 2017
&gr={call_anything_here} -> &gr={var:richiama_atto.row.docu.GRUPPO}

gr= is not empty from the record why?
Max_admin 04 Feb, 2017
Hi Salvo,

It does not return a result for you ? try to call "{var:richiama_atto.row.docu.GRUPPO}" in the event, does it return any result ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
salvok5 04 Feb, 2017
no, return any result.
Max_admin 04 Feb, 2017
Hi Salvo,

What is "richiama_atto" ? a table view ? if yes then where do you write this {var:richiama_atto.row.docu.GRUPPO} line ? if its inside the table fields or inside a view called by the table then it will not work.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
salvok5 04 Feb, 2017
Max sorry, but I stupid.
"richiama_atto" is a function that loads the table.
But the reference to the table is "table_elencogruppo" and inserting "table_elencogruppo" now works.
Max_admin 04 Feb, 2017
Hi Salvo,

Glad you solved it, v6 is new and its not easy!🙂

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
salvok5 04 Feb, 2017
No, it does not work.
on the "Link" field by Button link:
{url:view_sottogruppo}&gr={var:table_elencogruppo.row.docu.GRUPPO}
Max_admin 04 Feb, 2017
Ok, the "button link" fields "view" should be inside the table for this to work, is it ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mikezf 24 Mar, 2017
1 Likes
Hi,

I found something like that and it is working by me on CCv6.
I have created a Fields View with Submit Button. In Extra attributes in Advanced settings I put this:
onclick:history.back();

This view I have added to an event, where the back button should be placed.
That's all. It has the same function as browsers back arrow.
Good luck,
Mike
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger