Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1
-
Component/s: None
-
Labels:None
Description
As of 1.0 Custom Data has the Multiple choice values for certain types of custom data fields. List below is the valid combinations of Data Type's and HTML Types.
---------------------------------------------------------
Data Type Description HTML Type
---------------------------------------------------------
String Alphanumeric Text, Select, Radio,
Checkbox
Int Integer Text, Select, Radio
Float Number Text, Select, Radio
Money Money Text, Select, Radio
Memo Note TextArea
Date Date Select Date
Boolean Yes or No Radio
StateProvince State/Province Select State/Province
Country Country Select Country
---------------------------------------------------------
As seen from table above data types String, Int, Float
and Money can have Multiple choices implemented by either
Select's, Radio buttons or Checkboxes.
Multiple choice values have to be validated depending on their data type (as per the table above).
********************************************************
Implement Show/Hide logic for custom option values after
validations.
Sample Data
data_type: Int
html_type: Select
The user inputs the following rows and clicks submit
--------------------------------------------------------
Row# Defaults Label Value Weight Active?
--------------------------------------------------------
1 () L1 [x]
2 () L2 1 [x]
3 () L3 A1 [x]
4 () [x]
5 () 5 [x]
7 () A2 [x]
8 () [x]
--------------------------------------------------------
After entering the above detail when user clicks submit
the following rows should be expanded
1, 3, 5, 7 - validation errors
2 - no errors but still
and rows 4, 8 will not be expanded since they are blank.
*********************************************************
Display Issues for show hide of choices
1 - After all 11 rows are displayed a final div with
message "If you need additional options - you can add
them after you Save your current entries." will be
displayed
2 - The 'add option' link should always be displayed for
the next available hidden row.