https://github.com/plan2net/form-options-csv
Import CSV data for form select options
https://github.com/plan2net/form-options-csv
typo3 typo3-extension typo3-form
Last synced: 8 months ago
JSON representation
Import CSV data for form select options
- Host: GitHub
- URL: https://github.com/plan2net/form-options-csv
- Owner: plan2net
- License: gpl-3.0
- Created: 2018-06-28T17:44:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-09T15:31:41.000Z (over 2 years ago)
- Last Synced: 2024-11-18T09:55:01.475Z (over 1 year ago)
- Topics: typo3, typo3-extension, typo3-form
- Language: PHP
- Homepage:
- Size: 140 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Import CSV data for form select options
## What does it do?
The extension adds a new field to the following elements:
* Single select
* Multi select
* Multi checkbox
* Radio button
(all elements where there's a _Choices_ field)

You can insert CSV data (see below for possible format and options) in this field. If you save the element, the CSV data is imported as _Choices_ rows.

(see below for the given data for this result)
## Installation
Require via composer
composer require "plan2net/form-options-csv"
and activate the extension through the Extension manager.
## Possible values in the import field
1: Label 1;1;1
2: Label 2;2
3: Label 3
4: Label 4;;1
5: "Label with ; works too";5;1
1. Label is set to 'Label 1', value is set to '1' and the option is selected as default
2. Label is set to 'Label 2', value is set to '2'
3. Label _and_ value are set to 'Label 3'
4. Label _and_ value are set to 'Label 4' and the option is set as default
5. Escape the label with `""` (CSV standard) and you can use `;` in the text too
The import field is cleared after the form element is saved.
For single select values only the first entry with a selected option is set and ignored for all other entries.
## Known issues
* Doesn't work within fieldset (yet)