Announcement

Collapse
No announcement yet.

How to limit the select files function.....?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to limit the select files function.....?

    I have created a prog where people can select file to download. But the problem is, I would like them to only select up to 5 files..... I see the "Allow multiple selections" with a delimiter of ; , but is there a way to allow un to five selections....? Either 1 or all is no ggod for my useage.....

  • #2
    Re: How to limit the select files function.....?

    No, I'm sorry, there is no way to restrict the amount of files that the user selects on that screen. The only thing you could do is perform a validation on the number of files on the AFTER actions tab of the screen. If it fails, you could then display a message and set %PreventNextPage% to TRUE which will redisplay that screen.

    Hope that helps.

    Comment


    • #3
      Re: How to limit the select files function.....?

      What would the command then, if I wanted to stop if more than 5 files....?
      IF (%file_list_total% = +5)
      Assign Value (%PreventNextPage% = True)

      Does not seem to work......

      Comment


      • #4
        Re: How to limit the select files function.....?

        In order to get the number of results, you would use the "Count Delimited Strings" action with ";" as the delimiter. That will store the number in a variable. Let's call it %NumFiles%.

        Next you create an IF control structure with a condition such as %NumFiles% > 5

        So in between your IF and END IF, you would then create your Assign Value action as you have.

        Comment

        Working...
        X