I tell me how do I go back to the previous page with a button placed in the form?
Forums
back button?
I tell me how do I go back to the previous page with a button placed in the form?
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
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
<a class="blue ui button" id="button_link1" href="index.php?event=view_sottogruppo&gr=&st=">Indietro</a>
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.
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
gr= is not empty from the record why?
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
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
"richiama_atto" is a function that loads the table.
But the reference to the table is "table_elencogruppo" and inserting "table_elencogruppo" now works.
Glad you solved it, v6 is new and its not easy!🙂
Best regards,
Max
on the "Link" field by Button link:
{url:view_sottogruppo}&gr={var:table_elencogruppo.row.docu.GRUPPO}
Best regards,
Max
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