Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

The Userform Module Custom Rules don't work


Reply


6 Posts   1015 Views

Avatar
Searli

Community Member, 3 Posts

17 September 2011 at 11:12pm

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

Avatar
Willr

Forum Moderator, 5513 Posts

18 September 2011 at 3:53pm

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.

Avatar
Searli

Community Member, 3 Posts

20 September 2011 at 1:39am

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
Avatar
Searli

Community Member, 3 Posts

23 September 2011 at 8:14pm

Any ideas?

Avatar
Suzanne

Community Member, 37 Posts

13 October 2012 at 2:21am

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

Avatar
Willr

Forum Moderator, 5513 Posts

13 October 2012 at 3:03pm

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?