Displaying just one value on a website?

  • Profile Image
    Asked on November 19, 2013 at 05:21 AM

    Hi all,

    I have a requirement to display just one submitted value from a form on a website.  I thought that perhaps generating an RSS report might be the solution but that just displays a link to the submission itself.

    The desired final output on the website would look something like "The latest entry is from {Fred Flintsone}" kind of thing.  Any thoughts as to how I might be able to do that?

  • Profile Image
    Answered on November 19, 2013 at 06:48 AM

    I've just answered my own question!  I've used the report type "HTML Table" and it works a charm.

    Tell me though, is there some custom CSS I can inject to format the html table differently, would that work?

  • Profile Image
    Answered on November 19, 2013 at 06:53 AM

    Hello grassmedia,

    Thank you for contacting JotForm support.

    Rss report gives you submission data in XML format. You can parse this xml data and display it in your webpage in any way you would like to present it but it may require some custom script to be able to parse and show in html.

    There are fee free tools which can be used to achieve your requirement. The best one I found to be is "Magpie". This requires custom files to be uploaded in your webserver.

    Here are the steps:

    - Download Magpie from http://magpierss.sourceforge.net, unpack it to a directory off your root called "rss".
    - Create a directory off your root called "cache", chmod it to 777.

    Here is the PHP code which should be added:

    $news_feed = '';
    $rss = fetch_rss("http://www.url-of-the-rss-feed.com");
    $items = array_slice($rss->items, 0);
    foreach ($items as $item )
        $news_feed .= 'The latest entry is from"' . $item['description'] . '<br />';

    Hope this helps.

    Do get back to us if yo uhave any question.

    Thank you!

  • Profile Image
    Answered on November 19, 2013 at 07:06 AM

    Hello grassmedia,

    Unfortunately, the HTML table listing report cannot be customized. There is no option to inject custom css or change any section of your report.

    Thank you!