FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL Link direct to View
#1
Hi Ben & Co.

I've setup a statistical page to show the stats of each view (i.e how many submission for each view).

Example:
Code:
<?php
echo ft_api_show_submission_count(4, 351);
?>

What I'm trying to do is directly link the stat to direct the user to their view list. I.E

Males Dogs
10 - (is linked)
Female Dogs
15 -- (is linked)

So when the user clicks on "10" it redirects them to the view list showing those 10 submissions. I understand in order for this to operate they would need to be already logged into their FT accounts, which they are. But after implementing this, once the user clicks on the stat it redirects them to the FORMS Page, rather than the specific list.

Code:
<a href="http://www.yourdomain.com/admin/forms/submissions.php?page=1&view=351" target="_blank">
                                <strong><?php
echo ft_api_show_submission_count(4, 351);
?></strong></a>

Any ideas ?
Reply
#2
Nevermind, solved it myself. Smile

use the following code ' added the form_id into the link.

Code:
<a href="http://www.yourdomain/admin/forms/submissions.php?form_id=4&view=357">
                                <strong><?php
echo ft_api_show_submission_count(4, 357);
?></strong></a>
Reply
#3
oops, double post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)