Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » The Userform Module Custom Rules don't work

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 929 Views
  • Searli
    Avatar
    Community Member
    3 Posts

    The Userform Module Custom Rules don't work Link to this post

    I am trying to build a Form that uses the custom rules in the Userform module.

    For example:

    1. I create a dropdown list with Option 1, Option 2 and Option 3
    2. I create three HTML fields called HTML 1, HTML 2, HMTL3
    3. Each HTML field by default is set to hidden
    4. Each HTML field is set to show with a custom rule if value of Drop down field (step 1) is value "Option 1" (for HTML 1 field), "Option 2" (for HTML 2 field) and "Option 3" (for HTML 3) field.

    Looking at the Published form I can select the options in the drop-down field, but it does not show any of the correponding HTML fields. Trying custom rules with other Form fields also returns no results. Custom rules don#t seem to work.

    I am using Silverstrip 2.3.10

    Help would be appreciated ...

    thanks

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: The Userform Module Custom Rules don't work Link to this post

    Do you have any javascript errors on the page? Can you post the source of your webpage so we can look at what the generated javascript has.

    Make sure you're running the latest master version of user forms. The last release is quite old now.

  • Searli
    Avatar
    Community Member
    3 Posts

    Re: The Userform Module Custom Rules don't work Link to this post

    Hi there,
    I am using version 0.2.1 of userforms ... when you say master version, do you mean from svn ... as that does not seem to work with version 2.3.10 of silverstripe at all ...

    There are no javascript errors on the page (tested on local instance using firebug)

    Here the HTML output is in the attached file. Thanks

    Attached Files
  • Searli
    Avatar
    Community Member
    3 Posts

    Re: The Userform Module Custom Rules don't work Link to this post

    Any ideas?

  • Suzanne
    Avatar
    Community Member
    37 Posts

    Re: The Userform Module Custom Rules don't work Link to this post

    Hi,

    I'm not getting them to work either.

    When I say

    Hide on default, nothing happens, still see them on my form page.

    When I say

    Show this field when .... value .... , nothing happens

    Whatever I say nothing happens no errors nothing.

    Can anyone help???

    Gr. Suzanne

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: The Userform Module Custom Rules don't work Link to this post

    I just did a quick test using 3.0 and the latest master and seems to work as designed for me. Could you provide a link to your form (if it's public) and a screenshot of how the CMS is setup?

    929 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.