Material Design input-field like label only - material-design

I have a form which is filled with input fields and some custom components.
I use the labels/placeholders of the input fields as field topic, however these seem to work only for input elements. What if I want to have the same for md-slide-toggle for example?
Here is an example enter link description here
Want Blacklist label to be shown as Name label.

Related

How can I render the fields and datatable by using <p:panelGrid>?

I have no idea how to render the below image with input fields and datatable with the exact alignment in UI.
I referred some documentation with examples, but I can't find the pattern for datatable. Attached the image below. Kindly share your thoughts for this as outline.
I would consider using PrimeFlex instead of p:panelGrid.
You basically need a 3 column grid layout. See the first example:
https://www.primefaces.org/primeflex/gridsystem
An the input can be done using form layout. See the horizontal examples:
https://www.primefaces.org/primeflex/formlayout
For the data table, simply use the p:dataTable. See: https://www.primefaces.org/showcase/ui/data/datatable/basic.xhtml

sharepoint custom list: multi-line field content is blank when person/group field has multiple values

I have a custom list with the following fields:
Title: Single line of text
Description: Multiple lines of text
Remarks: Multiple lines of text
Recipient: Person or Group
Whenever I input two or more people in the Recipient field, in View Item page (Display form), contents of Description and Remarks becomes blank/empty.
Contents are displayed okay on the main view of custom list, and in EDIT mode.
If I input a single person only in the Recipient field, the contents for Description and Remarks are displayed in Display form.
Note: Recipient field is set to accept multiple values. I'm using Sharepoint 2013.
I am new to Sharepoint and I'd like to know a way on how to troubleshoot/debug this matter. Or are the multi-line fields somehow connected to the person field? Or any setting that I need to setup? How can I check?
I tried to search but I found no same situation as far.
If there is no customization in Display form, it should work fine. If it works for Single User in Recipient, It should work for multiple users too.
For further troubleshooting, You can create a test list and create same type of columns in it. Then see if the Display form works fine in that test list. It will let you know if the issue is related to the specific list or it's generic. You can then narrow down your troubleshooting options based on this result.

Add an editable paragraph inside a Form in 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.

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

Dynamic Layouts in Filemaker

First off I am new to FM but I have a good handle on the basics. What I need to do is this - in a contact information type layout I want to be able to alter the layout based on a specific field. Ex. When the record is brought up, the background of the layout will change colors for a client, another for vendor, etc.
I tried to change a label based on a field, with no success. My guess is that the layout is static and only the data fields change.
We use FM Pro.
Thanks,
Mark
FileMaker layouts are static, but there are still some things you can do to alter the layout based on the values of fields:
Calculation Fields
If you want the data shown in an area to change, you can use a Calculation field. A typical example of this would be a status field. To do this you would add a new field to your table and use enter a calculation on that field like:
Case (
IsEmpty(myTable::myField) ; "Please enter a value for myField." ;
myTable::myField = "wrong value" ; "Please enter a correct value for myField." ;
"Everything seems okay."
)
Conditional Formatting
To make things like background color change you can use a conditionally formatted field. I will typically add an empty numeric field (for this example we'll call it emptyField) and set it so that it can't be edited during modification.
If you place emptyField on your layout, below all the other fields and disallow the user to enter the field in either Browse or Find mode, you can then use conditional formatting to change the field's color.
Portal Hiding
You can use this technique when you want some elements of your UI to disappear when they aren't needed. For example, if you want a "submit" button to appear only when all of the records on a field are filled out.
To use this technique I will usually create a Calculated number field, called ReadyForSubmit, on the original table and give it a logical calculation like:
not IsEmpty(field1) and ... and not IsEmpty(fieldN)
(Note that the value of the above function would be 1 or 0)
I will then create a new Support table in my database and add to it a field One with a calculated value set to 1.
I will then make a relationship between myTable::readyForSubmit and Support::One.
On the layout, create a portal with one row. Put your Submit button in that layout. Now, when readyForSubmit calculates to 1 the button will appear. When it calculates to 0 the button will be hidden.
Hidden Tab Browser
Finally, you can use a tab browser where you set the title font size to 1 point, hide the border, and control the browser programmatically. You can use this for having different field arrangements for different types of records. To do this you would first give an Object name to each tab of the tab browser, say Tab1, Tab2, Tab3.
Then you would add a script, goToTab, with the logic for when you want to go to each tab. Say:
If (myTable::myField = "corn")
Go to Object (Tab1)
Else If (myTable::myField = "squash")
Go To Object (Tab2)
End If
You would then use Script Triggers to run goToTab when On Record Load.
With the release of filemaker 13 there may be another way to do this. You could use a slide control, name the panels in the control, and conditionally switch to the correct panel based on the record type.
you would drop the appropriate fields for the record type in each panel.
http://help.filemaker.com/app/answers/detail/a_id/12012/~/using-slide-controls-and-slide-panels-in-filemaker-pro

Resources