-
Notifications
You must be signed in to change notification settings - Fork 85
Feature dynamic select input #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature dynamic select input #76
Conversation
Fixes for dynamic types: array:array:string Support for new dynamic type: select_input Support for nested dynamic types
This reverts commit 2d13336.
init JS for several ctrl Made $Blog available in global Read me updadtes
|
@fplanque @midnight-studios I have tested new setting type |
|
@yurabakhtin the max number on form submitting issue as per your screenshot is fixed in 8400127 i also included additional types samples handled by 'select_input' 862516a, also note that dynamic calls don't work on Skin Settings as per below bug report and this bug has no relation to (caused by) this pull request http://forums.b2evolution.net/bug-6-9-x-dynamic-plugin-settings-not |
…night-studios/b2evolution into Feature-Dynamic-Select-Input
- Wrap setting in fieldset to avoid layout breaking NOTE> Layout breaks when setting (input) is not placed insided a fieldset, this should be fixed - Added color field for more testing options
fixes for types input_group and select_input
|
@yurabakhtin I addressed all the issues in your screenshot: |
Remove button won't work otherwise
|
@midnight-studios I have tested last version of this PR and yes it seems it works without errors, thanks. |
|
@yurabakhtin that is 100% accurate. Thanks |

Usage
The features these changes provides can be used in different use cases of which will most commonly be utilized by plugins.
Use case example
An example will be a survey form. The admin may wish to create a form that may require numerous form input fields.
Some might be as simple as question and answer consisting of some Question Text and a feedback/answer text input field, however the admin might wish to use more complex feedback options, such as a radio group, checklist or select list. This will require the plugin to support more complex functionality as the admin would be required to add input properties such as option values and labels.
Each Form Input Item may consist of any of the following types:
Each Form Input will be added dynamically in order to build the form as needed, and each input property will also be required to be added dynamically for some inputs such as lists, may need only two or three list items, while others may be more.
This feature therefor provides support for nested dynamic inputs such as types 'select_input' inside array:array:string.
Additional use case examples will include complex settings for a shopping cart plugin, courier/shipping plugin, layer slider plugin
Changes
This branch contains support for a feature not available in the Official Branch:
Configurations:
Supports:
Related PR
This PR incorporates all the following:
Forum Discussions
http://forums.b2evolution.net/support-dynamic-fields-inside-dynamic-fields#c110631
http://forums.b2evolution.net/feature-request-dynamic-input-groups#c110422
Visual Cues
Additional fixes
fix removing and re-adding items via AJAX callbacks