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

Unhiding multiple text fields in userforms module


Reply

4 Posts   575 Views

Avatar
gakenny

23 November 2012 at 4:18pm Community Member, 153 Posts

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

13 March 2013 at 3:12pm Community Member, 153 Posts

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

16 March 2013 at 9:55pm Forum Moderator, 5511 Posts

Try the latest master, fixed this last week https://github.com/silverstripe/silverstripe-userforms/commit/527b63786de03356c4bd791294e62957c722038f

Avatar
gakenny

17 March 2013 at 9:01am Community Member, 153 Posts

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