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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Unhiding multiple text fields in userforms module


Go to End


4 Posts   1691 Views

Avatar
gakenny

Community Member, 153 Posts

23 November 2012 at 4:18pm

Hello,

I am generating a form using the current stable versions of both SilverStripe and the UserForms module:
SilverStripe v3.0.2
UserForms v1.0

On this form I have created a Dropdown Field that is Visible and five Text Fields that are hidden. The same custom rule has been defined for each of the Text Fields to be displayed when a specific value is selected from the Dropdown Field.

However, when selecting the specific value from the Dropdown Field, only the LAST Text Field is displayed with the remaining Text Fields remaining hidden. This did work in earlier versions (<v3.0) of SilverStripe and the UserForms module with the same rules defined.

Is there a known workaround to this issue?

Thanks,

Gary

Avatar
gakenny

Community Member, 153 Posts

13 March 2013 at 3:12pm

Hello,

I am still having issues hiding and unhiding fields using the UserForms module.

Using the latest version of SilverStripe 3.0.5 and either UserForms v1.0 or UserForms Latest Master Build, I am unable to use the hide/unhide attribute to hide a field. I have set the default display method for the field on the form as hidden and it is still displayed.

Is there a known issue that may be causing this to occur?

Cheers,

Gary

Avatar
Willr

Forum Moderator, 5523 Posts

16 March 2013 at 9:55pm

Avatar
gakenny

Community Member, 153 Posts

17 March 2013 at 9:01am

Thanks Will,

I can confirm that this issue is resolved in the latest master build. With this download, I did have to recreate the thirdparty folder and repackage locally before uncompressing in a shared server environment. Functionally, this download seems complete at this stage.

Thanks for looking at this and for your response.

Kind regards,

Gary