Viewing 9 replies - 1 through 9 (of 9 total)
  • What is the purpose of having a yes/no radio button to join or not?

    Thread Starter Hyacinthe LAHADI

    (@lahadi)

    @borisv

    The radio button yes/no mean exactly :
    YES : join awiser (to be a service provider)
    No : normal member ( just to see all service offered)

    Thanks

    Thread Starter Hyacinthe LAHADI

    (@lahadi)

    @borisv Thanks for your help, but my problem lies rather in the conditional field.
    Normally when selecting YES, other options open to be filled, using Predefined Fields [roles (radio)] it’s not working, and if i use other radio (Setup New Field) the other options is working but the role is don’t select.

    You didn’t do (probably not even tried) what I said that’s why you are stuck, I think.

    I don’t think anybody understands what you are trying to do. First of all, your form has conditions to the YES or NO options, so now what’s the reason for that?

    Did you actually create user roles called Yes and No in UM User Roles?

    How do you expect the form is going to work if nobody can see the conditions one has to meet to select either ‘yes’ or ‘no’ in the first place?

    Am I missing something, but isn’t it the fact that you have conditions configured in your user roles radio button (for the yes or no) that the form doesn’t do what you want it to do?

    Thread Starter Hyacinthe LAHADI

    (@lahadi)

    @borisv

    Did you actually create user roles called Yes and No in UM User Roles?

    YES

    Thread Starter Hyacinthe LAHADI

    (@lahadi)

    This link show what i want : https://www.extranet.sas-mg.biz/awisers/register/, but the radio button don’t select a role, it’s just a simple radio with conditionnal field.
    If i use Predefined Fields [roles (radio)] the conditionnal field not work : https://awiser-yenylai.rhcloud.com/register

    All things equal from the start after one installs Ultimate Member in WordPress and assuming that you actually have in Ultimate Members > User Roles, a user role called “YES” (I don’t know why you would want to do it that way, btw) then you must have created in your UM default registration form a radio button to allow users to choose that ‘YES’ user role, correct?

    The resulting code that is showing in the user registration form (front end) is:
    <div class="um-field um-field-join_member um-field-radio" data-key="join_member">

    The code that would allow choosing a user role should be:
    <div class="um-field um-field-join_member um-field-radio" data-key="role_radio">

    In addition, the button in your registration form has a “join_member” for name:

    <input type="radio" name="join_member[]" value="Yes">

    It should be
    <input type="radio" name="role" value="Yes">

    So as you can see the form is not allowing users to select user roles and that’s where the problem lies. I would start from scratch and certainly dump that ‘Yes or No’ idea…

    • This reply was modified 8 years, 5 months ago by borisv.
    • This reply was modified 8 years, 5 months ago by borisv.
    Thread Starter Hyacinthe LAHADI

    (@lahadi)

    @borisv my problem is the conditionnal fields not in select/choose user role. Maybe my english is bad for more explain my case.

    I explain :

    Case 1 : using a simple radio but not a role (radio) : https://www.extranet.sas-mg.biz/awisers/register.
    If you choose YES (Join Awisers Member), you should have an option to check, but as we know this is not allow choosing a user role.

    Video : https://www.opentest.co/share/30bcc20079e411e68b6d81fdb3ce3c7c

    Case 2: using a role (radio) : https://awiser-yenylai.rhcloud.com/register.
    If you choose YES (Join Awisers Member), there is no option, because the conditionnal field not work.

    Video : https://www.opentest.co/share/5a2dc3d079e111e6bcbb35a020e5ec00

    I want this Case 2 to work, ie should have an option open to check.

    Let me know if you understand my need. Thanks

    Thread Starter Hyacinthe LAHADI

    (@lahadi)

    Hi @borisv,

    Thank you very much for your helps. It’s running now : https://awiser-yenylai.rhcloud.com/register.

    The issue is what i put at

    As you wrote >
    The conditional field is as follows:
    show => If => Roles (Radio) => equals to => member

    but me i used for exemple :
    show => If => Roles (Radio) => equals to => Service provider INSTEAD service-provider.

    Best regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Issue with conditional fields and role (radio)’ is closed to new replies.