Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

[Support request] eMember Form Builder : custom value to SELECT

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember Form Builder : custom value to SELECT

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 11 months ago by wzp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 9, 2022 at 10:44 am #84445
    kreart
    Spectator

    Hi !

    Until now, I was using the custom field within WP eMember and I used ID in dropdown list like this :

    9793=>Acton Vale, 9794=>Alma, 9795=>Asbestos

    Now I would like to use the eMember Form Builder addon, but I don’t have the possibility to set a different value than what the displaying one. Is it possible ?

    June 9, 2022 at 5:01 pm #84448
    wzp
    Moderator

    Is this what you want to kdo?

    eMember – Choose multiple options in the registration form

    June 9, 2022 at 5:55 pm #84450
    kreart
    Spectator

    No, what I want to do is put a number (the ID of something else) that corresponds to the displayed item in the option of the SELECT in the form builder addon. I put you screenshots of the thing in this link :

    https://www.dropbox.com/t/GgyxCY6hnLwu2GT6

    I did it with the custom field, but now I would like to do the same with Form Builder Addon. I need to retrieve the number in another function later on.

    June 13, 2022 at 2:12 pm #84460
    wzp
    Moderator

    There is an “easy” and a “hard” solution to what you are asking for:

    • “Hard” — When you design a form, using the Form Builder, it stores the design specifications for your forms in the MySQL database; and when the form is displayed, those specifications are interpreted by a p-code like system, that dynamically constructs the form code. It is very difficult to modify the addon, to work the way that you would like it to.
       
    • “Easy” — Because your dropdown choices are known in advance (Option1, Option2, et al); at the appropriate point in your own code, simply retrieve the field “text value” and run it through a CASE statement, that will transliterate the human-readable dropdown selection to whatever desired numerical value is required.
       
      In the cases where you are using multiple values for the same dropdown item, because you are using dirrent forms for each membership level, simply have a hidden “level code” field as part of the form. You’d then use a nested IF/CASE statement, similar to:
       
         IF level-code = 1 THEN
            CASE
         ELSE IF level-code = 3 THEN
            CASE
    • This reply was modified 2 years, 11 months ago by wzp.
    • This reply was modified 2 years, 11 months ago by wzp.
    • This reply was modified 2 years, 11 months ago by wzp.
  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ