Skip to content

[FEATURE][FormTribe 🔥][1000 Points] Question Type: File Upload #1257

@jobenjada

Description

@jobenjada

Welcome to the FormTribe

This issue will get you the points mentioned in issue title for the FormTribe Hackathon

Preparation:
If this is your first time contributing, please read:

Only when your PR follows all of the best practices it will get merged.

Want more points quick? Complete Side Quests 🏰


Is your feature request related to a problem? Please describe.

Users want to enable respondents to upload files

Describe the solution you'd like

Add question type "File Upload".

Tasks

  1. Add a new question type called File Upload with Hero Icon "ArrowUpTray":
image

The file type has the following settings:
image

The UI component for the toggle + card can be taken from the Survey Settings page

The Combobox component can be taken from the Filter:

image
  1. Add a new component to the survey package to display file upload questions in surveys. The following mockups don't have to be rebuilt pixel-perfect, the font-size, colors etc are predetermined in the survey package - please stick to those:
image
  1. Add logic: This new question type requires specific logic rules:
  • Is empty
  • Is not empty

Since this is binary, you can look at the logic rules for question type Consent. Make sure to adjust the logic options dependent on the Required toggle. If question is required, it should not be possible to select "Is empty" for a logic rule.

  1. Test extensively :)

If you run into questions, please reach out to @pandeymangg on Discord - he is our Upload Guy 😎

Thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthacktoberfestcomplete these issues to gather points for Hacktoberfest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions