7

You can override the processor in forms.renderForm pipeline that parses and builds the list of files to include, and prepend the CDN url of your provider. Create a new pipeline processor, inheriting from the existing Sitecore one and override the CreateFullFilePath method: public class IncludeFiles : Sitecore.ExperienceForms.Mvc.Pipelines.RenderForm....


7

In order to style the custom checkboxes you must have a class on parent, because CSS does not allow a parent selector. For that you can modify the View/ Go to wwwroot\[sitecore-instance]\Views\FormBuilder\FieldTemplates\CheckboxList.cshtml and in foreach loop you will get its Markup. Update it with your CSS class and add a tag enclosed Make sure to ...


7

On the form item is a field Styles You need to fill the name of your css files splitted by "|" The files on the disk are stored on folder: c:\inetpub\wwwroot\yourfoldername\sitecore%20modules/Web/ExperienceForms/css/


5

This can happen for multiple reasons: A) Missing attributes on a custom field Solution: Make sure that the @Html.GenerateUnobtrusiveValidationAttributes(m => m.Value) attribute is present on all of your fields. See http://madhuanbalagan.com/sitecore-9-forms-uncaught-typeerror-cannot-read-property-unobtrusive-of-undefined for details B) jQuery is being ...


4

Since your initial question was specifically about the Form Build application, I do not think the Styles field is the right way to go. Whatever is specified in the Styles field, all the content is going to be loaded not only in the Form Builder application but also in your live website. Adding styles through the Styles field to your live website creates ...


4

ExportDataProvider replaces newlines in the data from FormDataProvider to spaces. So you must get the data with FormDataProvider and format it manually. Here is an example of a fixed version: function Get-FormData($formId, $startDate, $endDate) { $provider = [Sitecore.DependencyInjection.ServiceLocator]::ServiceProvider.GetService([Sitecore....


4

There are no built-in hooks or events, but by extending the RenderForm pipeline a JavaScript event can be emitted on success: Config: <pipelines> <forms.renderForm> <processor type="MyProject.Pipelines.Forms.RenderForm.FormPostSuccessEvent, MyProject" resolve="true" patch:after="processor[@type='Sitecore....


3

Depends on the Sitecore and JSS version you are using, JSS is compatible with the Forms after Sitecore Version 9.2 and JSS version 12. See SXA and Sitecore Forms compatibility table -


3

There is no condition-based submit action in Sitecore Forms yet but you can achieve this by adding your custom action or using conditional logic for your forms. I have not tried this yet but I will suggest the conditional logic for this. The Sitecore Forms application lets you apply conditional actions to fields in web forms. You can apply conditions to ...


3

I came across with same situation and in my case I handled it differently instead of modifying .cshtml file which comes with OOTB. In my case if I am using checkbox list control I added that list to inside section control. Now I have ability to add class on section control and here I can use the child selector to style my checkbox list. And If I am using ...


3

The Send Email submit action fails on CM because the Email Experience Manager Client API is intended to run only on Content Delivery instances. The purpose of this client API is to proxy the requests to add or remove contacts from a List Manager list, or to send EXM campaigns from the Content Delivery instances to the Content Management instances. The ...


3

I got the same requirement and I have done some customization for this. Step 1: Go to core database and under this location (/sitecore/client/Applications/FormsBuilder/Components/Layouts/PropertyGridForm/PageSettings/Settings) create a new control by copying DropDownList and name it CascadeDropDownList. Under this new control, add some text box parameters ...


2

You need to update the label from the Content Editor for this. If you are using Form Designer it will cut off the text. but if you will use the Content Editor for this it will work fine, because the Title field is single-line text field in Sitecore. All you need to navigate the field for which you want to update the label and then select the Title field, add ...


2

There is nothing inherently special about the Experience Forms rendering. It is a rendering like any other Controller Rendering, custom or otherwise. Yes, the Controller itself does call a Sitecore pipeline, but there is nothing stopping you from doing that in your own custom Controller Rendering either. If you want to statically bind a rendering in a View, ...


2

You need to add a custom field in Sitecore forms. You may refer to some blogs related to it. For example in my case I've created a custom Sitecore field called "hidden field". When I add it to Sitecore form, it gives me options to add some values like this. And in the code behind, I bind these values like this. using Sitecore.Data.Items; using Sitecore....


2

It's in Sitecore.ExperienceForms.Mvc.dll. The full class name with namespace is Sitecore.ExperienceForms.Mvc.Models.Fields.FieldViewModel


2

Sitecore Forms already have the functionality to export data. You can use bellow class to export data: [ServicesController("Forms.ExportData")] [SitecoreAuthorize(Roles = "sitecore\\Forms Editor")] [SetFormMode] public class ExportDataController : ServicesApiController { private readonly IExportDataProvider ...


2

You can achieve using customize your \Views\FormBuilder\FieldTemplates\{Allfields}.cshtml. Intro: Basically All sitecore form fields Models are inheriting InputViewModel. Like below for sample single line input field. This inherits InputViewModel Sitecore.ExperienceForms.Mvc.Models.Fields.StringInputViewModel : InputViewModel<string> All Input ...


2

To start using custom styles and scripts in your forms: In the Content Editor, navigate to sitecore/Forms, click the form that you want to add a script or style to and, in the Scripts or Styles field, add the name of your custom script or style file. Add your custom style or script file to one of the following folders: Scripts : /sitecore modules/Web/...


1

You have two different sources for the same contact where your identifier is also the same. But a contact identifier uniquely identifies a contact by a combination of Identifier and Source. To understand that, it is a correct approach let take an example of Twitter and Facebook as two sources and identifiers as the username of both sources. Now if you have ...


1

We solved the problem. As expected, it's a jQuery conflict. Here're the steps for to solve the conflict. We mapped the jQuery used by "Sitecore Forms" into a specific version. For this we created the file jquery.noconflict.js which contains only this single line of code. $jq213 = jQuery.noConflict(); We placed the file source to the 2nd position, ...


1

There can be multiple reasons for this error as described in previous comment. but if you are still facing the error, then there are chances that your Outerlayout.cshtml file having an wrong order of Forms scripts loading. You need to reference below scripts file before the RenderFormScript() method call. <script src="/sitecore%20modules/Web/...


1

I have answered the question you linked with some steps to troubleshoot this - but I will also answer here with an additional finding due to this question regarding SXA specifically. I found an issue where forms embedded in overlays in SXA (versions 1.9 and 9.3) will have this issue due to this bug in the component-overlay.js of the components theme which ...


1

When you press F5, you resubmit the request with the same data. It's logical that the captcha payload is not valid anymore on the second request. You could add a redirect submit action to have the form redirect on submit, so that F5 won't resubmit the request.


1

No, this is not possible OOTB at the moment (Sitecore 9.3 Initial Release). The conditions currently only look at the page the form elements are on. This means that if I select Option A in page 1, I can't see that (OOTB) in Page 2.


1

You need to create a dictionary item with the key: The {0} and {1} do not match. You will see then the error message on the page : I test in on 9.3 version.


1

Short answer: no. But, a lot of the form elements use the same model class. (A lot of them are StringInputViewModels). It's a good practice to provide an interface containing your new properties and creating new classes extending from the original version + implementing your interface. For the repeatable code in those classes to init the binding settings ...


1

The error you see is happening because the NavigationDataModelBinder which runs before it gets to BaseFormBuilderController.ProcessFormData has not been able to set the NavigationData due to these checks: string[] buttonValues = this.GetButtonValues(buttonId, bindingContext); if (buttonValues != null && buttonValues.Length <= 1) return (...


1

Yes is possible to integrate Sitecore form into a commerce page like a checkout page. Commerce Pages are normal pages in Sitecore and you can add any rendering to them. To add a rendering form to a page you need to follow this page: https://doc.sitecore.com/developers/90/sitecore-experience-manager/en/add-a-form-to-a-webpage.html For example I added a ...


1

I've not tried it before, but it's an interesting question.. I'd try a rewrite rule to rewrite the generated styles/scripts output domain to your CDN domain as a first test. Failing that, if you crack open the Sitecore.ExperienceForms.Mvc dll and have a look at what they're dong, you can likely just create your own variation of those extensions and bake in ...


Only top voted, non community-wiki answers of a minimum length are eligible