• Resolved jabcka

    (@jabcka)


    Hi
    I want to hide the group I’ve selected from after selecting an answer and showing the next group. How do I do that?
    Is there any conditional argument like:

    If X equals Y then show X and hide X

    Thanks

    • This topic was modified 7 years, 10 months ago by jabcka.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    you can add 2 conditions like this:

    if [x] equals "y" then show [group-1]
    if [x] not equals "y" then show [group-2]

    Is this what you are looking for?

    Thread Starter jabcka

    (@jabcka)

    Thanks.
    This wasn’t what I meant.

    I have a form with 10 questions. Each question has 4 options as answers.
    If a user chooses the first option, I want to show him the next question and hide the question he already answered.
    I don’t want to accumulate the questions along the page.

    if [x] equals “y” then hide [group-1]

    Plugin Author Jules Colle

    (@jules-colle)

    Thread Starter jabcka

    (@jabcka)

    Yes.
    Thanks
    Is there anything I should add to my fields?

    Thread Starter jabcka

    (@jabcka)

    So adding if [q1] equals “—” then show [g1] solved my issue

    • This reply was modified 7 years, 10 months ago by jabcka.
    Thread Starter jabcka

    (@jabcka)

    if [q1] equals “—” then show [g1]
    if [q1] equals “I’m great” then show [g2sub]
    if [q1] equals “I’m fine” then show [g3sub]
    if [q1] equals “Not so well” then show [g7sub]
    if [q2] equals “—” then show [g2]
    if [q2] equals “red” then show [g3sub]
    if [q2] equals “blue” then show [g4sub]
    if [q2] equals “yellow” then show [g2sub2]
    .
    .
    .
    .

    Plugin Author Jules Colle

    (@jules-colle)

    Yes, or you could simplify it like this.

    Instead of

    if [q1] equals "-" then show [g1]
    if [q1] equals "I'm great" then show [g2sub]
    if [q1] equals "I'm fine" then show [g3sub]
    if [q1] equals "Not so well" then show [g7sub]

    write:

    if [q1] equals "-" then show [g1]
    if [q1] not equals "-" then show [g2sub]

    Thanks for the review btw! Much appreciated.

    EDIT: never mind.. Your use case seems to be something completely different than mine ??

    • This reply was modified 7 years, 10 months ago by Jules Colle.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide group from page after showing other group’ is closed to new replies.