Skip to content

format option for software: #133

@samuelchika

Description

@samuelchika

In posting an Ad for category Software, the format field was an enum previously,
But because we have the other option where user can add the format of what they are posting, we are making that a string option.

So what happens is that when the user select other, the value of format should be changed from other to what the user inputed.

More details can be found here:

!['5903'].includes(selectedSoftwareCategory) && {
control: 'radio',
label: 'Format',
name: 'format',
type: 'radio',
options: [
{ key: 'Product Keys', value: 'product keys' },
{ key: 'USB', value: 'usb' },
{ key: 'Email', value: 'email format' },
{ key: 'CD', value: 'cd' },
{ key: 'Other', value: 'other' },
],
},
otherFormat && {
control: 'input',
label: 'Other Format',
name: 'format',
type: 'text',
placeholder: 'Enter format',
required: true,
},

Image

Metadata

Metadata

Labels

backendBackend teambugSomething isn't workingfrontendFrontend team

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions