New answers tagged

0

The field "Property Editor" of the template /System/Forms/Field Type - "{A60EDCAF-1285-46B5-8380-D790BB8C8708}" was missing the source. Updated the source of the "Droptree" with source as "DataSource={0E723521-4594-4785-AECE-CEB7BB2FB4E0}&DatabaseName=core".


0

Sitecore doesn't have an API to return statistics of how many users choose this answers, but it has a function to get all results from a form : IEnumerable<FormEntry> formEntries = this._formDataProvider.GetEntries(formId, startDate, endDate).AsEnumerable<FormEntry>(); You need to build your own controller and to inject formDataProvider on it. ...


0

The performance data is retrieve using the action GetFormStatistics from Sitecore.ExperienceForms.Client.Controllers.ReportsController class. I added below the action GetFormStatistics: namespace Sitecore.ExperienceForms.Client.Controllers { [ServicesController("Forms.Reports")] [CamelCaseJson] [SitecoreAuthorize(Roles = "sitecore\\Forms ...


1

This is what I have for Sitecore 9.3. You can simply leave the comparison text as empty like below: and the condition logic then shows as:


0

I think you can refer this and utilize the custom scripts method described. You can easily use the method described in the lines "call js function from external file" which in your case would the cshtml file of yours.


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 ...


0

Have you tried this in the marketing forms?


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 can below link for Sitecore Form styling - https://doc.sitecore.com/developers/90/sitecore-experience-manager/en/add-styles-and-scripts-to-sitecore-forms.html Sitecore Forms uses css and script files located in: <siteroot>/sitecore modules/Web/ExperienceForms So for css you can go to path - <siteroot>/sitecore modules/Web/ExperienceForms/css


0

First option to check if your personalization is configured properly and your goal is triggered is usage of Sitecore built-in abilities. There is Viewer panel in Explore editor. This panel allows you to see all visitors information including triggered goals in journey mode. You will be able to understand if your goals is triggered. Or trigger it manually in ...


0

Because the markup is not loaded into the DOM on page load, as you have found, you can't bind events or trigger parts of your script to load when the next page of your form is loaded. The only way we have found to do this is by using a MutationObserver on the .sitecore-form element. This will fire off an event when the new markup is loaded into the DOM and ...


-2

I agree with Gatogordo. You will need to create multiple Forms with pages for anonymous/logged-in users. In fact this will also take care of your requirement of different form for a logged-in user. Please see below:


0

Other option is to have on the first page of the form two sections : first one for anonymous users second one for logged users. You can use forms rules condition to hide/show the sections if the users is logged/anonymous.


0

If you have different forms, you could use personalisation (with the rules engine) on the mvc form rendering to set the correct form based on the condition if a user is logged in or not. This is an ootb solution, outside of the Forms part itself. It does require 2 forms however which might be an issue. Although you could use a Form template to have a base ...


0

What you need is to create a custom Submit action that will let you pick you form fields and update xConnect fields on the contact. I don't want a link only answer, but Sitecore already wrote most of the code in their walkthrough. https://doc.sitecore.com/developers/93/sitecore-experience-manager/en/walkthrough--creating-a-custom-submit-action-that-updates-...


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, ...


Top 50 recent answers are included