Forums

WordPress Petition Plugin
How to hide custom field answers? (3 posts)

  1. in3clicks
    Member
    Posted 1 year ago #

    Hi

    I just wondered if anyone could help - I'm using this plugin for a pledge rather than petition and popped a Yes/No question in. I have tried to make it so that this doesn't show on the list of those who have signed but it still shows up.

    Sorry, I might be being a bit daft with this but if anyone has any ideas that would be great!

    If you want to see how it's being used I'll pop the link to the site up...

    Joe :)

    http://wordpress.org/extend/plugins/wordpress-petition-plugin/

  2. eiland
    Member
    Posted 11 months ago #

    Yeah it seems as if the hide field and publish field are being reversed?

  3. eiland
    Member
    Posted 10 months ago #

    so on line 1023
    if($row->hide == 1) { $lmsg = __(" (won't be published)","fcpetition");} else { $lmsg = "";}
    becomes

    if($row->hide == 0) { $lmsg = __(" (won't be published)","fcpetition");} else { $lmsg = "";}

    and

    on line 1103
    if($hide[$fieldname] == 1){
    becomes
    if($hide[$fieldname] == 0) {

    I think.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic