ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SAEF Multiply file fields with different restrictions

December 28, 2010 7:28am

Subscribe [3]
  • #1 / Dec 28, 2010 7:28am

    Stevenb

    6 posts

    Hi,

    I have a question.
    I have set up the SAEF form.

    Now i have 2 file upload fields, 1 for a image and 1 for a file.

    I have 2 member groups, now what i want.

    Member group 1 which can access/see the image AND file field.
    Member group 2 which can access/see the image field.

    What is the best markup when using this piece of code:

    {if file}
        {file}
    {/if}

    Thanks,
    Steven

  • #2 / Dec 28, 2010 11:10am

    Sue Crocker

    26054 posts

    Hi, Steven. I’d use some sort of check for member group then display the fields as needed. You’d need to hand code the fields, but should be doable.

    Does that help?

  • #3 / Dec 28, 2010 1:02pm

    Stevenb

    6 posts

    Thanks for your reply,

    I’am going to hard code all the fields then.
    The only field i can get to work is the file field.

    Is it possible that you can hand me an example of the file field hard coded?

    Thanks,
    Steven

  • #4 / Dec 28, 2010 3:10pm

    Stevenb

    6 posts

    Got it solved!

    Just took the SAEF, viewed the source of the page and took that bit of code!

    Thanks!

  • #5 / Dec 29, 2010 12:37am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases