• Resolved chickoder

    (@chickoder)


    Is it possible to assign a value to a field without user’s input? Also, this field should be hidden to users. I have 3 forms so I need to assign 3 different values to this field depending on which form it is.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Roland Barker

    (@xnau)

    Yes, the plugin includes a hidden field type that can be set up to get environmental values in the background. Take a look at the documentaion:

    Hidden Dynamic Fields

    Thread Starter chickoder

    (@chickoder)

    Appreciate your help. I tried using this method, but there were no values storing on the hidden field that I created. I am not sure if I am doing it correctly. I am a starting to learn WordPress so I am please be patient with me.

    What I did is first, I created a hidden field and name it “hidden_selection”, I put the exact words “post->post_name” in the default value. Is that right or do I have to name differently?

    Plugin Author Roland Barker

    (@xnau)

    that’s correct, just make sure you have the field assigned to appear on the signup form so it will collect the value when the person submits that form.

    Thread Starter chickoder

    (@chickoder)

    There were no values stored. Am I doing it correctly?
    This is the code that I used.
    [pdb_signup fields=”hidden_selection”]

    Plugin Author Roland Barker

    (@xnau)

    That won’t work, don’t do it in the shortcode. Go to the Manage Database Fields page and open the editor for your hidden field. “Signup” should be checked for all fields you want included in your signup form.

    Thread Starter chickoder

    (@chickoder)

    That works! Thanks a lot for your help =)

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

The topic ‘Assign value’ is closed to new replies.