Solved

How to create an option set field?

  • 4 December 2019
  • 5 replies
  • 2 views

I am new to K2, and I have been tasked with create a new option set field that is to be placed on the input form.  I am not sure on how to create this field.  Do I need to create the field in the database table first?  What steps do I need to do to complete this?  Thank you in advance. 

icon

Best answer by Sunrise 7 December 2019, 17:17

View original

5 replies

Good day Pack00


 


Please see the following.


Choice Control: https://help.k2.com/onlinehelp/k2smartforms/userguide/4.7/default.htm#Choice.html,


Drop-Down List Control: https://help.k2.com/onlinehelp/k2smartforms/userguide/4.7/default.htm#SF_-_ViewControls_-_Drop-Down_List.html%3FTocPath%3DK2%2520Designer%7CControls%7C_____12,


(K2 Five 5.3) Drop-Down List Control: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#Create/K2Designer/Controls/DropDownList/DropDownListControl.htm,


List Box control: https://help.k2.com/onlinehelp/k2smartforms/userguide/4.7/default.htm#List_Box_control.htm%3FTocPath%3DK2%2520Designer%7CControls%7C_____19,


(K2 Five 5.3) List Box control: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#Create/K2Designer/Controls/ListBox/ListBoxControl.htm%3FTocPath%3DCreate%7CSmartForms%7CForms%7CControls%7CInput%2520Controls%7C_____11,


List Display Control: https://help.k2.com/onlinehelp/k2smartforms/userguide/4.7/default.htm#SF_-_ViewControls_-_List_Display.html%3FTocPath%3DK2%2520Designer%7CControls%7C_____20,


(K2 Five 5.3) List Display Control: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#Create/K2Designer/Controls/ListDisplay/ListDisplayControl.htm%3FTocPath%3DCreate%7CSmartForms%7CForms%7CControls%7CInput%2520Controls%7C_____12,


Multi-Select Control: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#Create/K2Designer/Controls/MultiSelect/MultiSelectControl.htm.


 


Best,


Sunrise

Badge +9

Hi Pack00


 


Go through the link below on how to use set data field


https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#LegacyDesigntools/Workflow/Thin_Client_Wizards/General_Wizards/Set_Data_Fields/Set_Data_Fields.htm


 


https://help.k2.com/onlinehelp/k2smartforms/userguide/4.7/default.htm#Thin_Client_Wizards/General_Wizards/Set_Data_Fields/Set_Data_Fields.htm


 


Regards


Elvis

Thank you for the links.  However, I am still not 100% sure on how to create the field first.  I see that I need to create a view, and drag the drop down contol over to the view, is that correct?  How do i actually create the field first though?

Badge +10

Hi Pack00, 


 


What are the requirements for this field? You can configure a static list of values in the control, or you can configure a data source to populate the list. You can use an existing SmartObject if you already have one that contains the options, or you can create a SmartBox SmartObject that will exist in the K2 database. (https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#How-Tos/BasicLeaveApplication/01CreateSmartObject.htm)

Good day  @Pack00 


 


The links I have given you lately also guide you on fields, you can pick any of them and go through it. Wherever you see data source mentioned, that is where the fields are stored, e.g. gender Male, Female.


 


(Additionally note that the fields to drag and drop into the view come from the SmartObject. Create a SmartObject first. After creating a SmartObject, right click the SmartObject and selecrt “Design View”. Please see images attached named “FieldsAddedInSmartObject”, “SmartObjectFielsToDisplayInView01”, “ItemViewForItemsSold”, and “TestingTheView”. Can you please watch the following videos from Youtube for more understanding?


K2 Tutorial: Leave Request (Basic) – Build: https://www.youtube.com/watch?v=k9XCg0_PDCo,


K2 Tutorial: Leave Request (Extended) – Build: https://www.youtube.com/watch?v=Uiv_P-01YAc.)


 


Best,


Sunrise





Reply