Sitefinity multiple choice widget - sitefinity

Is there a way for me to create my own multiple choice widget that will display in the forms section . I don’t want to overwrite the built-in view and JavaScript of the Sitefinity multiple choice widget.

If you want to create your own form field widget, then you can follow the doc article here:
https://www.progress.com/documentation/sitefinity-cms/for-developers-create-new-fields-for-forms-mvc
but modify it to be a multichoice widget.
You can check the source code of the built-in widget here:
https://github.com/Sitefinity/feather-widgets/blob/master/Telerik.Sitefinity.Frontend.Forms/Mvc/Controllers/MultipleChoiceFieldController.cs

Related

sitefinity form populate dropdownlist from API

I would like to create a form and add a dropdown list widget that will pull its choices from an API. I don't see any setting for that where would I call the API? what I was able to find is from 2014 so I think its outdated.
https://www.progress.com/blogs/sitefinity-custom-form-widget-with-dependent-dropdowns
It's cake... just use a regular input, then on the page use a Javascript widget and wire it up into a dropdown.
https://demos.telerik.com/kendo-ui/dropdownlist/remotedatasource
Use whatever JS component you want
Just a note though, give your input a cssclass name that will let you easily find it with the javascript.
I have a post on this https://www.sitefinitysteve.com/blog/binding-sitefinity-form-field-to-remote-data

how to add autocomplete function to a column in oracle apex tabular form report

i want to add an autocomplete function to work in one of my column suppose name.It is easy to do using items.but how can i do it in the report.
Since a report doesn't contain Apex items, you can't do this with the built in features. Ignoring any possible plugins that may already be available, you can do this with jQuery UI, specifically the Autocomplete widget. Apex already includes some of the jQuery UI suite, but you may need to download the Autocomplete widget from the jQuery website.
This will need some custom work on your end. This really isn't that hard if you know how to use jQuery.
Download the jQuery UI Autocomplete widget and include it on your page. You can put just the .js file for that in your Application Shared Items. I have the whole jQuery UI library in a separate place on the webserver because I use different parts for different projects.
Source in that widget in the page properties.
You'll need to create text items with apex_item.text in your report.
You'll need an On Page Load dynamic action to attach the Autocomplete widget to your text items.
For the autocomplete source, if it's short, you can just use a Javascript variable that you put on the Apex page. If it's longer or you need to find the list at run time, you can use a function that calls apex.server.process.
If your report has Partial Page Refresh turned on, make sure the DA in step 4 has Dynamic scope, not Static.

How to reference to a Sitefinity Form in a Custom Field

I am working on a custom sitefinity module in which I need to add a custom field where I can select a Sitefinity Form from a list of existing defined forms on the backend. What is the best approach to do this? Precisely how should I approach in defining the field and making its UI?
Unfortunately when I select "Related Data" as field type, Sitefinity Form is not available in the list of built-in data types. The other option (advanced option) I see is a GUID (or array of GUIDs) field type among field types which suggest making a custom code.
CMS version is Sitefinity 8.2 and we are using MVC-based feather components as well as our custom MVC components to develop the website.
Anybody had similar requirement and experience on this?
I would probably create a custom field control. This can be streamlined by using Sitefinity Thunder (because there's a lot of boilerplate C# and JavaScript needed). Once that's in place, you can create a custom field of either type Short Text or GUID, and for the interface, you use your custom field.
In your custom field's code, you can do something like creating a drop down list, where the text for each option is the form name, and the value is either the "name for developers" field or the ID of the form. That way the input is always constrained to IDs pointing to Sitefinity forms. Then when you interact with your custom content items later, you can use this ID/name to look up the referenced form.
As an aside about Related Data: Indeed, that only refers to either built-in content types (blogs, news, etc.) or custom-build dynamic content types. You won't find things like Forms in there.

Adding additional styles to the Style section in a List View Web Part

If I add a List View Web Part on a page and edit the current view there is a section under "Totals" called "Style". Is there a way to add a custom style in this list so the user can select it? The custom style will be applied to the list view web part changing the background colors of the rows and headers.
This cannot be done using a method which is supported by SharePoint.

How to assign a Term Sets to a Page layout on saving with out using taxonomy field control in sharepoint 2010

I have created a custom page layout with a taxonomy field control in it. I can assign the term sets and terms to this page layout with this taxonomy field control.
Now what i require is, can we able to assign these term sets to a page layout with out using taxonomy field control.Instead they have to assign on clicking a save button of a page in Edit mode.
I have done this by follwing the article in below link.
http://blogs.msdn.com/b/alimaz/archive/2009/12/08/content-organizer-and-managed-metadata-service.aspx?
Please somebody help me to solve this .
Add Enterprise Keywords to the parent content type and then use XSLT to modify the display.
I recommend using the Mavention Meta Fields feature from Waldek Mastykarz. It's easy to use and works great. Easy Meta Data Editor