Jump to content

Meta:FormWizard/Config

From Meta, a Wikimedia project coordination wiki

{

               "@doc": "Example",
 		"default":{
 			"config": {
 					"post-edit": "Thank you for creating your idea! Visit x page for some tips about how to take your idea to the next level.",
 					"new-page": true,
 					"namespace": "Grants",
 					"portal-page": "IdeaLab",
 					"page-template": "",
 					"infobox": "Probox/Idealab",
 					"talkpage-template": "",
                   "page-home": "Grants:IEG/Test/"
 			},
 			"step-1":{
 					"projectNameTextbox": {
 							"type": "smallTextBox",
 							"placeholder": "Short title",
 							"title": "What should we call your idea?",
 							"characterLength":100,
 							"mandatory":true,
 							"error-messageLength": "Max length reached",
 							"error-notFilled": "Mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"project",
 							"validate": "doesNotExists",
                           "page-title":true
 						},
 					"projectSummaryTextbox": {
 							"type": "largeTextBox",
 							"placeholder": "Add your summary here",
 							"title": "Briefly summarize your idea in a sentence",
 							"characterLength":200,
 							"mandatory": true,
 							"error-messageLength": "You"ve reached the word limit",
 							"error-notFilled": "Please fill out this mandatory field",
 							"add-to": "infobox",
 							"infobox-param":"summary"
 						},
                   "projectMethodsTextbox": {
 							"type": "largeTextBox",
 							"placeholder": "Click here to add summary",
 							"title": "Tell us about your methods in a line or two",
 							"add-to": "section",
 							"section-header": "Methods",
 							"visibility": "hidden",
 							"value": "These are the methods we will use.",
 							"parent": "projectProblemSolvedTextbox"
 							
 						},
 					"projectProblemSolvedTextbox": {
 							"type": "largeTextBox",
 							"placeholder": "Click here to explain the issue you want to address with this idea",
 							"title": "What is the problem you"re trying to solve?",
 							"characterLength":1000,
 							"section": "What is the problem you"re trying to solve?",
 							"mandatory": false,
 							"add-to": "section",
 							"section-header": "What is the problem you"re trying to solve?"
 						},
 					"projectSolutionTextbox": {
 							"type": "largeTextBox",
 							"placeholder": "Click here to explain how your idea might solve this problem ",
 							"title": "What is your solution?",
 							"characterLength":1000,
 							"section": "What is your solution?",
 							"mandatory": false,
 							"add-to": "section",
 							"section-header": "What is your solution?"
 						},
 					"nextButton":{
 							"type":"nextButton",
 							"title":"Next"
 						},
 					"cancelButton":{
 							"type": "cancelButton",
 							"title":"Cancel"
 						}
 				},
 				"step-2":{
 					"roleSelectionList":{
 							"title": "Does this idea need any specific kinds of participants to help turn it into action?",
 							"type": "stepperList",
 							"choiceList": [
 									{
 										"key": "community_organizer",
 										"value": 0
 									},
 									{
 										"key": "designer",
 										"value": 0
 									},
 									{
 										"key": "community_organizer",
 										"value": 0
 									},
 									{
 										"key": "developer",
 										"value": 0
 									},
 									{
 										"key": "project_manager",
 										"value": 0
 									},
 									{
 										"key": "researcher",
 										"value": 0
 									}
 							],
 							"hidden": [
 									{
 										"key": "timestamp",
 										"value": "~~~~"
 									},
 									{
 										"key": "status",
 										"value": "withdrawn"
 									},
 									{
 										"key": "more_participants",
 										"value": "YES"
 									}
 							],
 							"add-to": "infobox"
 						},
 					"projectImage":{
 							"type": "image",
 							"title": "Select an image for your project",
 							"imageTitleBox": "Enter a file name",

"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Persian_Cat_%28kitten%29.jpg/205px-Persian_Cat_%28kitten%29.jpg", "add-to": "infobox", "infobox-param": "image", "validate": true

 						},
 					"nextButton":{
 							"type":"doneButton",
 							"title":"Done"
 						},

"backButton":{

 							"type":"backButton",
 							"title":"Back"
 						}
 				}
 			}		
 	}