WordPress.org

Ready to get started?Download WordPress

Forums

Ninja Forms
[resolved] Hidden field 'User ID' showing as User Not Logged In (4 posts)

  1. Tanya
    Member
    Posted 2 years ago #

    1. Having trouble with User ID

    I am creating a hidden field with Value "User ID (if logged in)"

    I am logged into WordPress with my username and password, but when I submit the form, it says 'User Not Logged In'.

    I have tried with a different username and password and this also shows that the user is not logged in.

    How can I try and rectify this?

    2. Using a number for the Custom Input Mask

    I would like the Custom Mask Definition to be a number between 0 and 200. If I type in 999, it makes me fill out three digits.

    For example, my label is 'Winning Margin'. If I think the winning margin will be 5 and type that in, the field still requires another 2 extra digits. Other people may think the winning margin will be 10 so that's another digit and in extreme cases the guess may be over 100!

    To check the form, please visit this link

    Thanks,
    Tanya

    http://wordpress.org/extend/plugins/ninja-forms/

  2. James Laws
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    We updated a new version that fixes a few bugs, one of which is the user_id bug.

    Concerning the Input Masks. These only force the type of content, they don't conditionally validate it. You could add some help text to the field that explains you are looking for a number between 001 and 200. Other than that, this isn't going to do exactly what you're after.

  3. Tanya
    Member
    Posted 2 years ago #

    Thanks James, but I do want that particular feature.

    Really great plugin - easy to use, and I would recommend it to others.

  4. Kevin Stover
    The WP Ninjas
    Plugin Author

    Posted 2 years ago #

    Hey pjtna,

    There's probably a jQuery plugin or two out there that would do what you want. Your best bet is probably to track one down, install it and use it with Ninja Forms. You can give your field a special class and apply the jQuery number plugin to just that class.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic