• Resolved johnja1

    (@johnja1)


    Hi Michael,

    First of all Happy New Year and a belated Marry Christmas. I was just wondering if it is possible to have a conditional display base on the data on a page. I tried to work with your “filter Or trans” but then realize that the requirement is different. Here is what I need, if the field(RegisterOnly_RegisterPay) data is “Register Pay Now” then “Paid” must be displayed on the page column. Just like displaying a number with url. I tried to modify this script to add this too but I’m not good at JQuery or php. Can you please advice when time permits

    <script>// <![CDATA[
    (function ($) {
    $(‘td[title=”USCFID”] div’).each(
    function () {
    $(this).html(‘‘ + $(this).html() + ‘‘);
    })
    })(jQuery);
    // ]]></script>

    My url http://www.greensborochess.org/tournaments/pre-online-registration-list/

    Many Thanks
    Jacob

    https://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Something like this:

    <script type="text/javascript">// <![CDATA[
    (function ($) {
      $('td[title="RegisterOnly_RegisterPay"] div').each(
        function () {
         if($(this).html() == "Register Pay Now") {
            $(this).html("Paid");
         }
    })
    })(jQuery);
    // ]]></script>

    Thread Starter johnja1

    (@johnja1)

    Hi Michael,

    That works perfectly thanks !!

    Jacob

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conditional Display using CFDF’ is closed to new replies.