Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » MultiForm Module: FileField and PhoneNumberField

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 976 Views
  • katja
    Avatar
    Community Member
    46 Posts

    MultiForm Module: FileField and PhoneNumberField Link to this post

    Hello,

    First of all, I think the multiform module is brilliant. I'd just be interested to know, is it possible to get formfields of type "FileField" or "PhoneNumberField" working, when they are not part of the last step? It seems that the data cannot be loaded into the session. The entries are lost when you go to the next step. Does that have to do with the fact they are arrays?

    Would be glad to hear about any ideas on this.

    Thanks,
    Katja

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: MultiForm Module: FileField and PhoneNumberField Link to this post

    Phone Number Field should be able to load data for which it saves, sounds like a bug though it would be more related to how Phone Number Field works rather than multiform (hopefully).

    With FileField you won't be able to get that to work as you cannot set the value of a file upload form upon returning (for obvious security reasons!) so you'll have to live with users having to reattach the file.

  • katja
    Avatar
    Community Member
    46 Posts

    Re: MultiForm Module: FileField and PhoneNumberField Link to this post

    Thanks very much for this, Will. You are right about the phone number field, I have now found out that it does get saved if you leave no spaces between the numbers. The separate phone number fields are each numeric fields, but they don't get validated I think. If you leave spaces the script turning the parts into one string is not working and the number won't get saved. So, yeah, nothing to do with the multiform module. About the image, that makes sense. I have just put it on the last step now, as users might otherwise not notice they have to attach it again.

    Katja

    976 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.