Sitecore 9 Forms Creation
Is there any way for creating a simple form in Sitecore through dynamically using code so that it appears in the Sitecore Forms UI?
Any suggestion appreciated.
sitecore-forms
add a comment |
Is there any way for creating a simple form in Sitecore through dynamically using code so that it appears in the Sitecore Forms UI?
Any suggestion appreciated.
sitecore-forms
Please add more details into your question. You want to have code that's generates form using Sitecore forms and then it appears in Sitecore Forms UI? Is this correct? Why you would like to create form dynamically using code?
– Peter Procházka
Nov 13 '18 at 12:35
yes your correct..
– user4124
Nov 13 '18 at 12:38
You want to have code that's generates form using Sitecore forms--exactly i want
– user4124
Nov 13 '18 at 12:38
add a comment |
Is there any way for creating a simple form in Sitecore through dynamically using code so that it appears in the Sitecore Forms UI?
Any suggestion appreciated.
sitecore-forms
Is there any way for creating a simple form in Sitecore through dynamically using code so that it appears in the Sitecore Forms UI?
Any suggestion appreciated.
sitecore-forms
sitecore-forms
edited Nov 13 '18 at 14:10
Dan Sinclair
1,518525
1,518525
asked Nov 13 '18 at 12:26
user4124
Please add more details into your question. You want to have code that's generates form using Sitecore forms and then it appears in Sitecore Forms UI? Is this correct? Why you would like to create form dynamically using code?
– Peter Procházka
Nov 13 '18 at 12:35
yes your correct..
– user4124
Nov 13 '18 at 12:38
You want to have code that's generates form using Sitecore forms--exactly i want
– user4124
Nov 13 '18 at 12:38
add a comment |
Please add more details into your question. You want to have code that's generates form using Sitecore forms and then it appears in Sitecore Forms UI? Is this correct? Why you would like to create form dynamically using code?
– Peter Procházka
Nov 13 '18 at 12:35
yes your correct..
– user4124
Nov 13 '18 at 12:38
You want to have code that's generates form using Sitecore forms--exactly i want
– user4124
Nov 13 '18 at 12:38
Please add more details into your question. You want to have code that's generates form using Sitecore forms and then it appears in Sitecore Forms UI? Is this correct? Why you would like to create form dynamically using code?
– Peter Procházka
Nov 13 '18 at 12:35
Please add more details into your question. You want to have code that's generates form using Sitecore forms and then it appears in Sitecore Forms UI? Is this correct? Why you would like to create form dynamically using code?
– Peter Procházka
Nov 13 '18 at 12:35
yes your correct..
– user4124
Nov 13 '18 at 12:38
yes your correct..
– user4124
Nov 13 '18 at 12:38
You want to have code that's generates form using Sitecore forms--exactly i want
– user4124
Nov 13 '18 at 12:38
You want to have code that's generates form using Sitecore forms--exactly i want
– user4124
Nov 13 '18 at 12:38
add a comment |
1 Answer
1
active
oldest
votes
Though, I don't see the use case for your question, a form is just contructed by a tree of sitecore items. So in theory, you could create those items through code, like you would create other sitecore items with the Sitecore API.
To make it appear in the Forms UI, you would need to index them to the master index, as the list is builded from the master index.
If you would like to see the structure of the items you need to create, I would suggest to create a sample form through the UI, and get a look at the created items.
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
1
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
|
show 3 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "664"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14900%2fsitecore-9-forms-creation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Though, I don't see the use case for your question, a form is just contructed by a tree of sitecore items. So in theory, you could create those items through code, like you would create other sitecore items with the Sitecore API.
To make it appear in the Forms UI, you would need to index them to the master index, as the list is builded from the master index.
If you would like to see the structure of the items you need to create, I would suggest to create a sample form through the UI, and get a look at the created items.
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
1
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
|
show 3 more comments
Though, I don't see the use case for your question, a form is just contructed by a tree of sitecore items. So in theory, you could create those items through code, like you would create other sitecore items with the Sitecore API.
To make it appear in the Forms UI, you would need to index them to the master index, as the list is builded from the master index.
If you would like to see the structure of the items you need to create, I would suggest to create a sample form through the UI, and get a look at the created items.
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
1
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
|
show 3 more comments
Though, I don't see the use case for your question, a form is just contructed by a tree of sitecore items. So in theory, you could create those items through code, like you would create other sitecore items with the Sitecore API.
To make it appear in the Forms UI, you would need to index them to the master index, as the list is builded from the master index.
If you would like to see the structure of the items you need to create, I would suggest to create a sample form through the UI, and get a look at the created items.
Though, I don't see the use case for your question, a form is just contructed by a tree of sitecore items. So in theory, you could create those items through code, like you would create other sitecore items with the Sitecore API.
To make it appear in the Forms UI, you would need to index them to the master index, as the list is builded from the master index.
If you would like to see the structure of the items you need to create, I would suggest to create a sample form through the UI, and get a look at the created items.
answered Nov 13 '18 at 12:43
Bart VerdonckBart Verdonck
1,351120
1,351120
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
1
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
|
show 3 more comments
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
1
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
I want to migrate WFFM to Sitecore forms,if they used textbox i need to convert into Sitecore 9 forms textbox via code.So just i need to create a items like as usual in sitecore..is this creates a form?
– user4124
Nov 13 '18 at 12:47
1
1
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
A noble cause to create a converter tool. :-) Good luck, but I think it will be challenging because there are major differences in architecture and functionality between WFFM and Sitecore Forms.
– Bart Verdonck
Nov 13 '18 at 12:50
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
okay.Thanks for your info and reply Bart..!
– user4124
Nov 13 '18 at 12:53
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
It might be easier to actually just have a person migrate the forms from one form to another. Unless you have 10,000 forms or some other ridiculous number of them.
– Jason St-Cyr
Nov 13 '18 at 15:01
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 '18 at 15:34
|
show 3 more comments
Thanks for contributing an answer to Sitecore Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14900%2fsitecore-9-forms-creation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please add more details into your question. You want to have code that's generates form using Sitecore forms and then it appears in Sitecore Forms UI? Is this correct? Why you would like to create form dynamically using code?
– Peter Procházka
Nov 13 '18 at 12:35
yes your correct..
– user4124
Nov 13 '18 at 12:38
You want to have code that's generates form using Sitecore forms--exactly i want
– user4124
Nov 13 '18 at 12:38