How to change ID attribute of Episerver Forms form element? - episerver

I'm using Episerver Forms with CMS 11.
I would like to change the default id attribute on the form element to render a custom ID instead of the form GUID:
<form id="6d670961-57db-4935-8876-8a730f37c468">
Is there a way to change it to a custom (but still unique) name so that I can insert an anchor tag which scrolls to the form with an SEO-friendly URL?

Related

2sxc App | Demo Content | Auto Fill

I have a series of modules based on the 'Content' App that I have created demo content for but as per the templates once I click edit the content data doesn't pre fill into the UI fields (which is something I'm trying to achieve).
I know the 'Content' App module templates are not Apps on their own like the 'FAQ'/'Accordion' Apps which I thought were capable of this pre fill presentation of demo content. How do you set an App's demo presentation content to display in the input fields of the UI?
I am currently looking at the Visual Query Designer but is this the only way to assign demo content to auto fill into the UI fields once a user clicks edit?
NOTE: My goal is to create a dnn template page of modules all displaying demo content (each assigned its own one) and then either copy this page or import it to another whereby the demo content has actually pre filled the modules on the new page once a user clicks on the edit button.
Thx
you can go to the "fields" of the content type and click on the "data type" ie sting, hyperlink etc and you should be able to set a default value

Fire Google Tag Manager GTM Tags on Angular Clicks

My development team has created a single page website with many links like this:
Geography
and
Demographics
How can I create Google Tag Manager tags which can differentiate these as separate events since they have the same href as "javascript:"? Is there a way to make the event name based off of the anchor text?
Thanks!
In GTM, you can try to utilise the {{Click Text}} variable which, according to GA documentation, is
Click Text: The visible text inside the clicked element.
You would just need to make sure that the anchor element is your clicked element, and the text would follow from that.

How to write the Xpath for the Dynamically generated ID by Extjs

1Iam finding difficulty in getting the Xpath for Dynamically generated ID by Extjs.My application is using ExtJs rich UI.
Could you any one help me out'
This div is inside a table
Sample HtmlSample HTML
In this id ext-genXXXX changes in every refresh.
Can you add custom css class to the control element, e.g. see this: In ExtJS, how to add a custom CSS class to data grid rows?, and then use By.cssSelector instead of By.id?

Change ADF Query Panel's Default Component

In my JSPX page, I created a search page by drag-n-dropping the View Criteria (VC) to the page. By default the component's are text box. What I want to do is change some of them to use other components, such as the selectOneChoice component, with binding from another Entity Object (EO), or maybe add a date picker to it.
Is this possible? Or do I have to stick with the defaults?
This is all stuff that can be done in your view object under Attributes. For date attributes, make sure that the type is set to date. I've'nt done this one but for the selectOneChoice component, I'm assuming you can define a list of values on the desired attribute that is based on another view object. Also look in the Control Type field of the Control Hints when you edit an attribute. If you are using bind variable with your search I believe you can define these properties there also.

Hide some of the field in GridEditMode.PopUp mode

I have Telerik MVC Grid which has popup edit form with several fields on of them is ID field.
.Editable(editing => editing.Mode(GridEditMode.PopUp))
I would like to hide ID field from popup edit form, how to do that?
You can create a view using *.ascx file , where you you will design the form as per the requirement and you can provide template name in .Editable as shown below
.Editable(editing => editing.Mode(GridEditMode.PopUp)
.TemplateName("MyView"))
Where MyView is a ascx file which holds the fields to be displayed.

Resources