Add an editable paragraph inside a Form in Kentico - kentico

I have a form, say A, inside this form I'd like to have an editable text field which can be maintained by a CMS content editor.
I was told that we cannot do it.
So I am wondering that can we make an editable text field some where else, e.g. the Webpart which contains the form, and display the text inside the form A?
Also, I do not want to save the text into the data table which maps to this form.
Here is the form
"Our staff will endeavour to respond to your message within 2 business days."
This is the text that I want to make an editable text field for.

If the editable text is NOT part of the form then there is no need to have it "inside" the form or as a form field. You have a few options to add this editable text:
Inside any WYSIWYG editor, you can place a form or use the widget to add a form. As long as your editable text is outside of the actual form, you can place this text before or after the form widget.
In the form itself, add a new Layout and place the form field labels and value macros as well as your custom text inside there.
You can create Categories which will group fields underneath that category together on the form. See image below for an example. This is a good way to store some "grouping" text for those similar fields. This has to be edited within the form itself.

Related

Changing the Type of the Custom field

How can i change the Type of the Custom field in Acumatica?
I created a new custom field of "ComboBox" Type for the Sales Order Header Section.Now i would like to change its type to "TextEdit" so the user can manually enter any value in it. So far there are only few Sales order where user has entered the value in this field.
Thanks
Combo boxes are stored in string fields in the database - you can therefore easily replace the control on the page with a text edit field. The simplest way is to remove the combo box from the layout editor, and then adding it back as a text box from the "Add Data Fields" tab. If you want to modify the properties of the field itself, you have to go to the Data Access section and modify the attributes of the field (PXDBString + remove PXStringList attribute if you have one). Lastly, if this is a field you were creating as part of your customization project, you might have to manually edit the Table node of the project XML (File -> View Project XML)

Want to create an column in Dynamic View Panel that displays "Favorites" icon

I am using a Dynamic View Panel and would like to create a "Favorites" column in the view. The underlying view has a "Favorites" multivalue names field that contains all users that have flagged the document as a favorite. What I would like to do is to handle this conversion in a "Customizer" bean where I can compare the current user with the stored vales in the "Favorites" column and see if they are in the list. If they are I would present a "Green Star" icon (not a standard Notes icon) else I would present an empty star icon. I would also like to make the star icon live so if you click on the star it would toggle the favorite value in the database on/off.
How do I implement such a feature?
What are the DominoViewCustomizer methods I need to override? (looking at afterCreateColumn)
How do I get and set the column values? (really lost here)
How do I get the column to display a Notes resource image (my stars) or do I need to store it in a directory on server?
How do I make the star icon clickable?
How do I capture that click event?
Using Domino v9.0.1
If you don't have to use a dynamic view panel here's a way of doing it that will work with a view panel, repeat, or data table...
Use a "favorites" document for each user. Have it contain one multi-value item to store the Note IDs of all the documents the user favorited.
When the user logs on read the contents of the multi-value field into a sessionScope variable. Then in your view column all you need to do is check if the NoteID of the current row is in your sessionScope variable and display the appropriate icon.
For the part when a user clicks on a star you would have an event handler on that column that does a lookup to the user's favorites document (create it if it doesn't exist) and add or remove the NoteID then do a partial refresh on the view.
You can probably still do this with a dynamic view panel but I can't speak to the particulars of it since I don't use it much.

Sharepoint 2010 Content types Hyperlinks and Word QuickParts

Sharepoint 2010I'm slowly making progress with Sharepoint, but have encountered a problem with Content Types and Word Quickparts.
What I'm trying to do:
I want a Content type to hold summary information for manuals and related documents that might be located in separate libraries. I want to display this information in a Table within Word (by setting up a template) using Word Quick Parts>Document property fields.This table would then summarise all the relevant fields and their related links at the top of a document that in turn summarises information about a particular system.This Word document in turn would be stored in a separate document library.
This all works fine for dates, text descriptions, check boxes, yes/no fields and drop down selections as I can find the related Word Quick Parts>Document Property
However, the "Hyperlink or Picture" Type fields are not present in the Word Quick Parts>Document Property fields. SoAm I completely misunderstanding what content types are for? orIs there a setting within sharepoint that would make these hyperlinks visible in the Word Quick Parts?or Is there a better alternate solution. Thanks!
Hyperlink is not available as property in Word Quick Parts.
Sadly, you can access to this field in Word when you click in the property icon. This will display all the SharePoint property of the document with the hyperlink field.
A workaround would be to create a simple text field and to put the URL of the hyperlink field in this field. (With Workflow or Event Receiver)
An another deep solution is proposed in this link :
https://social.msdn.microsoft.com/Forums/office/en-US/c7619237-baa1-4669-af65-0f0a39223aad/sharepoint-metadata-and-office-quickparts-hyperlinks-are-not-appearing-in-the-quick-part-list?forum=worddev
This is about create two properties, one for the text, one for the url. Then to arrange it in Word in order to get an hyperlink.
Since Microsoft seems to be removing a lot of its legacy web pages, the content of the above link is copied below:
a. In the sharepoint list, you will need two text properties, one for
the link text and one for the display text. Let's call them hllink1
and hldisplay1. For a sample document, put some text in each of these
properties.
b. in the template,
insert the hllink1 Document Property and the hldisplay1 Document Property. This is a temporary move that will let you change thevalues
of these properties without displaying the DIP
insert a HYPERLINK field as follows
use ctrl-F9 to insert a pair of field code braces { }
type HYPERLINK "" between the {}, so you have
{ HYPERLINK "" }
then insert another copy of the hllink1 Document Property between the ""
{ HYPERLINK "the Document Property for hllink1" }
c. select the Hyperlink field and use F9 to update it. When you show
the result (Alt-F9), you should see a clickable hyperlink where the
"display text" is the same as the link text
d. Click somewhere inside the display text, and insert the hldisplay1
Document Property.
e. Carefully select the remainder of the display text and delete it.
You should stil be left with a hyperlink that can be ctrl-clicked in
the usual way.
f. Modify the texts in hllink1 and hldisplay1. However notice that,
as a maximum, the hyperlink display text will update automatically.
The tooltip for the hyperlink does not update automatically.
g. Select the hyperlink and press F9 to update it. The tooltip/link
text should update

How to add two related forms in a notes view?

Ok,I have a situation where I need to display a view that contains field value from two forms which is connected via a "CVNo" field. At first I thought it was simple and dived in. I added the form names in the view selection formula of the notes view and then created columns and assigned their respective values, but what happened was the output I got from doing so is a very jumbled and cluttered view. Based on my understanding the notes view displayed the column values from each form differently. I don't know how to do this or if this possible in notes view. All help and suggestions and are very appreciated.
In Lotus Notes view you cannot display documents connected to each other by a custom field. The only connection which can be displayed in Lotus Notes view is parent->response document hierarchy.
And please note that you do not create view that displays values from forms. You create view to display field values from documents, which are filtered to be shown in this view.
If you have documents, with field Form, one Form1 and another Form2, then create a view with selection formula:
SELECT Form = "Form1" | Form = "Form2"
Every row in the view represents a document (either with Form1 or Form2 value in the Form field).
And every column may contain a field name or #-formula to evaluate with every shown document to display a value in this column.

Gravity forms - merging values

Need some help with Gravity forms. I need to have a field, that is a merge of values ,that user has previously selected.
So, if a user has selected 3 different fields wth values of 1)XYY, 2)YYX,3)YYZ I do not need a sum, just a plain merge, in form of XYY.YYX.YYZ, or anything like that.
Could that be acomplised with some merging tags, or dynamically population?
Thanks
Of course;
You should create two different forms.
Collect data with field1-field2-field3, they can be single line text, number, date or anything. In the advanced tab of field settings, write a parameter name for each one, like field1-field2-field3.
In the second form create a single line text, in the advanced tab of field settings check "dynamically populate field" and write your parameters like field1.field2.field3.
In form1 settings->confirmations->redirect URL line, write your form2 page url where you added form2. Select "Pass field data via query string" and add your parameters like field1={fieldname:1}&field2={fieldname:2}&field3={fieldname:3}
When you submit form1, your form2->single line text field will capture the parameters as you wish.
This is possible with Gravity Forms Populate Anything by...
Add whatever type of field you'd like to use to capture the combined.
Set the Default Value to the merge tags of your 3 fields: #{Field A:1}.#{Field B:2}.#{Field C:3}.
That's it.
Edit: Updated screenshot for Gravity Forms 2.5 and updated merge tags to use the # to make them "live".

Resources