{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Prepopulation for fundraising pages","type":"basic","slug":"prepopulation-for-fundraising-pages","excerpt":"Form-Prepopulation-API","body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"How to prepopulate form values with GET parameter?\"\n}\n[/block]\nLike donation forms all fields of the form for starting a fundraising page can be prepopulated, too. The following parameters can be appended to the corresponding url. These variables can be appended to the javascript embed code or directly to the url address.\n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"This API is available in all FundraisingBox plans.\",\n  \"body\": \"\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Fieldnames and values\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Values\",\n    \"h-2\": \"Description\",\n    \"6-0\": \"fundraiser_email\",\n    \"7-0\": \"fundraisingpage_custom_field_ID\",\n    \"6-1\": \"Varchar(100)\",\n    \"7-1\": \"Mixed (depends on the custom field type)\",\n    \"6-2\": \"\",\n    \"7-2\": \"Custom field ids can be found in “settings”>”Custom fields”.\\nCustom field has to be added to the form.\\nExample: to prepopulate the custom field with ID “123“ with the text “example“ use: “fundraisingpage_custom_field_123=example“\",\n    \"0-0\": \"title\",\n    \"1-0\": \"fundraiser_name\",\n    \"3-0\": \"description\",\n    \"4-0\": \"goal\",\n    \"5-0\": \"donation_message\",\n    \"4-1\": \"Float\",\n    \"4-2\": \"Without currency symbols, e.g. 5.50\",\n    \"5-1\": \"Text\",\n    \"3-1\": \"Text\",\n    \"0-1\": \"Varchar(100)\",\n    \"1-1\": \"Varchar(100)\",\n    \"2-0\": \"fundraiser_email\",\n    \"2-1\": \"Varchar(100)\"\n  },\n  \"cols\": 3,\n  \"rows\": 8\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Non editable prepopulation\"\n}\n[/block]\nIf you do not want that the prepopulated field is editable add a \"_fix\" to the parameter. \nFor example: \"title_fix\", \"goal_fix\", \"fundraisingpage_custom_field_123_fix\".\n\n**Attention:** fixing values will prevent the fundraiser to change or correct values. Use it with care.\n[block:api-header]\n{\n  \"type\": \"basic\"\n}\n[/block]","updates":[],"order":999,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5f6c52ddc507b10287f5e346","createdAt":"2020-09-24T08:03:41.630Z","user":"5720ba18c669e80e00c35051","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Form-Prepopulation-API","slug":"form-prepopulation","order":1,"from_sync":false,"reference":false,"_id":"571f73cfcb4baa0e00d13a80","createdAt":"2016-04-26T13:57:35.810Z","project":"571f5e8cd8667f0e00a3c498","version":"571f5e8cd8667f0e00a3c49b","__v":1},"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["571f5e8cd8667f0e00a3c49c","571f73cfcb4baa0e00d13a80","571f7451cb4baa0e00d13a88","571f7d2720695f3400f38797","571f7fb0ac2a080e0014c661","571f884be54f2d0e003ebb0a","572200c9ecb38d0e00d80ebd","572c301e7c8eff0e00aaa174","57df91b2c6348d0e0020c452","57e104db9ff1e21900a721ab","57fd04caeaa77f19008b8202","5899c7113514ce0f0014da84","5cbeda4b862d090013abd413","5e60d6278f8b380072f0b1e3"],"_id":"571f5e8cd8667f0e00a3c49b","hasDoc":true,"releaseDate":"2016-04-26T12:26:52.312Z","__v":14,"hasReference":true,"createdAt":"2016-04-26T12:26:52.312Z","project":"571f5e8cd8667f0e00a3c498"},"project":"571f5e8cd8667f0e00a3c498","__v":0}

Prepopulation for fundraising pages

Form-Prepopulation-API

[block:api-header] { "type": "basic", "title": "How to prepopulate form values with GET parameter?" } [/block] Like donation forms all fields of the form for starting a fundraising page can be prepopulated, too. The following parameters can be appended to the corresponding url. These variables can be appended to the javascript embed code or directly to the url address. [block:callout] { "type": "success", "title": "This API is available in all FundraisingBox plans.", "body": "" } [/block] [block:api-header] { "type": "basic", "title": "Fieldnames and values" } [/block] [block:parameters] { "data": { "h-0": "Name", "h-1": "Values", "h-2": "Description", "6-0": "fundraiser_email", "7-0": "fundraisingpage_custom_field_ID", "6-1": "Varchar(100)", "7-1": "Mixed (depends on the custom field type)", "6-2": "", "7-2": "Custom field ids can be found in “settings”>”Custom fields”.\nCustom field has to be added to the form.\nExample: to prepopulate the custom field with ID “123“ with the text “example“ use: “fundraisingpage_custom_field_123=example“", "0-0": "title", "1-0": "fundraiser_name", "3-0": "description", "4-0": "goal", "5-0": "donation_message", "4-1": "Float", "4-2": "Without currency symbols, e.g. 5.50", "5-1": "Text", "3-1": "Text", "0-1": "Varchar(100)", "1-1": "Varchar(100)", "2-0": "fundraiser_email", "2-1": "Varchar(100)" }, "cols": 3, "rows": 8 } [/block] [block:api-header] { "type": "basic", "title": "Non editable prepopulation" } [/block] If you do not want that the prepopulated field is editable add a "_fix" to the parameter. For example: "title_fix", "goal_fix", "fundraisingpage_custom_field_123_fix". **Attention:** fixing values will prevent the fundraiser to change or correct values. Use it with care. [block:api-header] { "type": "basic" } [/block]