• Hi there!
    I have some problem with “Using Multiple Registration Forms”.

    I created a field group (common) with 3 record, and oc a hidden one with a name postname.
    https://i.imgur.com/ujZzW8p.png

    But this point i got stucked. On the result page the [pdb_list filter=”postname=jsz”] gives nothing for me ( on the same page the [pdb_list filter=’approve=no’] is working perfectly)

    I figured it out, that the problem could be with the empty value of the postname, but i don’t know why.
    https://i.imgur.com/oQX9jAQ.png

    The value must be “jsz”, but nothing. I tried to change the theme, tried with the $post->post_title value (and post->post_name too), but nothing so far.

    Am i doing something wrong? The shortcode on the sign-up page is
    [pdb_signup groups=”common”]

    Thank you for your support, and that great plugin! ??
    Regards, Gabor

    • This topic was modified 6 years, 8 months ago by wiselamp.
    • This topic was modified 6 years, 8 months ago by wiselamp.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author xnau webdesign

    (@xnau)

    To really understand what’s going in here, you need to look at what is in the database directly…in other words open it in phpMyAdmin so that you know exactly what you may need to match to and why your filter doesn’t match.

    You may need to to a “substring” match like this:

    [pdb_list filter="postname~jsz"]

    but of course that could run into problems if there are other values that contain that string.

    Thread Starter wiselamp

    (@wiselamp)

    But if the original ‘post_name’ Hidden field with ‘post->post_name’ value doesn’t store anything on the front-end (it should be the value of the page name), the filter will not work anyway, right?

    Or it is possible that case it has the value, but the source code showqs this?
    <input name=”post_name” type=”hidden” value=”” />

    ps.: i tried to set a direct value for the post_name (jsz), and the filter worked great. So my problem is what should i write to get the page name back.
    Strange, if i try it on a page: <?php global $post; echo $post->post_name; ?>
    on the frontend i got post_name; ?>
    seems like the -> is the problem, but unfortunately my experience of php coding isn’t enough for this. (i tried to change language and theme of course)

    • This reply was modified 6 years, 8 months ago by wiselamp.
    • This reply was modified 6 years, 8 months ago by wiselamp.
    • This reply was modified 6 years, 8 months ago by wiselamp.
    Plugin Author xnau webdesign

    (@xnau)

    OK, probably what is happening is the visual editor is converting the code characters. Check your page in text mode, make sure the codes are correct, then save without going back to visual mode.

    Plugin Author xnau webdesign

    (@xnau)

    Also, when using a dynamic hidden field, you need to make sure that is working first, before anything else.

    Look at the HTML of the signup form (which you have done) and make sure that the post name is showing up in the value of the hidden field. if it is not, something is wrong. Go back to the field definition and make sure the “default” value is correct, no spaces or anything that doesn’t belong there.

    • This reply was modified 6 years, 8 months ago by xnau webdesign. Reason: for clarity
    Thread Starter wiselamp

    (@wiselamp)

    The post->post_name value is correct (i sent screenshot in the first post).
    In the PHPMyAdmin, the value is a:1:{s:15:"post->post_name";s:15:"post->post_name";}
    The dynamic field still not working.
    I’m out of ideas. ??

    • This reply was modified 6 years, 8 months ago by wiselamp.
    Plugin Author xnau webdesign

    (@xnau)

    The “post->post_name” should be set as the “default” value of the hidden field. I just noticed you have it in the “values” part of the field definition.

    Thread Starter wiselamp

    (@wiselamp)

    Thank you very much! ??

    I hope I am not stepping on this thread but the topic I think relates to a question I have. How can I create multiple registration forms using the same fields? For example I have two different groups, A & B and they both use the same fields but when I select a field from group A to put it in group B, it removes it from group A. I don’t want to have to create new fields for each group. Thanks

    • This reply was modified 6 years, 7 months ago by bajan4evr2.
    Plugin Author xnau webdesign

    (@xnau)

    I know this is a little counter-intuitive, but when you set up a dynamic hidden field, the string for telling it which value to get goes in the “default” parameter for the field, not the “values” parameter as you have it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multiple registration forms’ is closed to new replies.