Sitecore 9 Forms Creation











up vote
1
down vote

favorite












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.










share|improve this question
























  • 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 Prochazka
    Nov 13 at 12:35










  • yes your correct..
    – RAJASEKARAN R
    Nov 13 at 12:38










  • You want to have code that's generates form using Sitecore forms--exactly i want
    – RAJASEKARAN R
    Nov 13 at 12:38















up vote
1
down vote

favorite












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.










share|improve this question
























  • 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 Prochazka
    Nov 13 at 12:35










  • yes your correct..
    – RAJASEKARAN R
    Nov 13 at 12:38










  • You want to have code that's generates form using Sitecore forms--exactly i want
    – RAJASEKARAN R
    Nov 13 at 12:38













up vote
1
down vote

favorite









up vote
1
down vote

favorite











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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 at 14:10









Dan Sinclair

878421




878421










asked Nov 13 at 12:26









RAJASEKARAN R

546




546












  • 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 Prochazka
    Nov 13 at 12:35










  • yes your correct..
    – RAJASEKARAN R
    Nov 13 at 12:38










  • You want to have code that's generates form using Sitecore forms--exactly i want
    – RAJASEKARAN R
    Nov 13 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 Prochazka
    Nov 13 at 12:35










  • yes your correct..
    – RAJASEKARAN R
    Nov 13 at 12:38










  • You want to have code that's generates form using Sitecore forms--exactly i want
    – RAJASEKARAN R
    Nov 13 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 Prochazka
Nov 13 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 Prochazka
Nov 13 at 12:35












yes your correct..
– RAJASEKARAN R
Nov 13 at 12:38




yes your correct..
– RAJASEKARAN R
Nov 13 at 12:38












You want to have code that's generates form using Sitecore forms--exactly i want
– RAJASEKARAN R
Nov 13 at 12:38




You want to have code that's generates form using Sitecore forms--exactly i want
– RAJASEKARAN R
Nov 13 at 12:38










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










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.



enter image description here



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.






share|improve this answer





















  • 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?
    – RAJASEKARAN R
    Nov 13 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 at 12:50










  • okay.Thanks for your info and reply Bart..!
    – RAJASEKARAN R
    Nov 13 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.
    – Jay S
    Nov 13 at 15:01










  • Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
    – Matthew FitzGerald-Chamberlain
    Nov 13 at 15:34











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',
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
});


}
});














 

draft saved


draft discarded


















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








up vote
4
down vote



accepted










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.



enter image description here



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.






share|improve this answer





















  • 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?
    – RAJASEKARAN R
    Nov 13 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 at 12:50










  • okay.Thanks for your info and reply Bart..!
    – RAJASEKARAN R
    Nov 13 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.
    – Jay S
    Nov 13 at 15:01










  • Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
    – Matthew FitzGerald-Chamberlain
    Nov 13 at 15:34















up vote
4
down vote



accepted










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.



enter image description here



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.






share|improve this answer





















  • 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?
    – RAJASEKARAN R
    Nov 13 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 at 12:50










  • okay.Thanks for your info and reply Bart..!
    – RAJASEKARAN R
    Nov 13 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.
    – Jay S
    Nov 13 at 15:01










  • Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
    – Matthew FitzGerald-Chamberlain
    Nov 13 at 15:34













up vote
4
down vote



accepted







up vote
4
down vote



accepted






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.



enter image description here



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.






share|improve this answer












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.



enter image description here



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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 at 12:43









Bart Verdonck

986114




986114












  • 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?
    – RAJASEKARAN R
    Nov 13 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 at 12:50










  • okay.Thanks for your info and reply Bart..!
    – RAJASEKARAN R
    Nov 13 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.
    – Jay S
    Nov 13 at 15:01










  • Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
    – Matthew FitzGerald-Chamberlain
    Nov 13 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?
    – RAJASEKARAN R
    Nov 13 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 at 12:50










  • okay.Thanks for your info and reply Bart..!
    – RAJASEKARAN R
    Nov 13 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.
    – Jay S
    Nov 13 at 15:01










  • Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
    – Matthew FitzGerald-Chamberlain
    Nov 13 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?
– RAJASEKARAN R
Nov 13 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?
– RAJASEKARAN R
Nov 13 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 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 at 12:50












okay.Thanks for your info and reply Bart..!
– RAJASEKARAN R
Nov 13 at 12:53






okay.Thanks for your info and reply Bart..!
– RAJASEKARAN R
Nov 13 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.
– Jay S
Nov 13 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.
– Jay S
Nov 13 at 15:01












Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 at 15:34




Sitecore Powershell Extensions are your friend here - marketplace.sitecore.net/en/Modules/…
– Matthew FitzGerald-Chamberlain
Nov 13 at 15:34


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Сан-Квентин

8-я гвардейская общевойсковая армия

Алькесар