Form labels
Is there any point in using form labels for the field names?
It is generally useful to use form field names that match the database field names, but I think there are more reasons for the labels and field names to be independent of each other than for them to be the same. For instance, some labels may be quite long, such as: "Describe your previous experience with form labels:"
Also, say you have a multi-language form. You may want the form labels to be in whatever language has been chosen, so they are elements in an array like so: <?php echo $label[11] ?>. In this example the variable $label would determine the language.
On the other hand, wherever possible you want your labels and the form field names to be easily identified with each other, or you can go nuts as you manage complex forms. In the previous example, there is no easy way to know that $label[11] refers to "city" and $label[12] refers to "state".
Similar Messages
-
How can I get a long form label to word wrap instead of being on one long line?
How can I get a long form label to word wrap instead of being on one long line?
-
PHP Form Labels Don't align with checkbox
Help!
I can't seem to get my labels in my sign-up form to align with the checkboxes towards the bottom. This form is live at www.thectkgroup.com/signup
Thank you!I like to use ordered lists for my form labels. It's good for web accessibility and it adds some extra hooks for your CSS to grab onto.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 form</title>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<style>
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
.formpart {
width: 800px; /**adjust as required**/
overflow: hidden;/*for float containment*/
/**wrap form lables and fields inside ordered lists for better web accessibility**/
.formpart ol {
list-style: none;
margin: 0;
padding: 0
.formpart li {
clear: left;
padding: 16px 0;
.formpart label {
float: left;
line-height: 28px; /**lines up labels with fields**/
font-size: 18px;
.formpart input[type=checkbox] {
width: 2.5em;
height: 1.5em;
/**put boxes first**/
float: left;
.formpart span {
color: #999;
font-style: oblique
</style>
</head>
<body>
<div class="formpart">
<p>Please select the class(es) you would like to attend</p>
<ol>
<li>
<label for="contact_classes1">October 28 - 30, 2013: <span>Lee County Sheriff's Office -Fort Madison</span>
<input id="contact_classes1" name="contact_classes1" type="checkbox">
</label>
</li>
<li>
<label for="contact_classes2">November 4 - 6, 2013: <span>Waterloo PD & Hawkeye CC</span>
<input id="contact_classes2" name="contact_classes2" type="checkbox">
</label>
</li>
<li>
<label for="contact_classes3">March 4 - 6, 2014:<span>Cedar Rapids PD</span>
<input id="contact_classes3" name="contact_classes3" type="checkbox">
</label>
</li>
<li>
<label for="contact_classes4">April 2014: <span>Des Moines PD</span>
<input id="contact_classes4" name="contact_classes4" type="checkbox">
</label>
</li>
</ol>
</div>
</body>
</html>
Nancy O. -
Hello everyone. I was wondering if there was a way to make a label viewable in normal mode for a PDF text field form. I am making my PDF a form with a fillable text box in it. Well, I'd like the box name to show up when someone opens the PDF, not just if they only go into the edit form view. I hope I'm making sense. So far, the only thing I can think of is making a Button with the label above the fillable text box or make the text box a combo box. However, with a combo box, I can't edit how the text will look when it's typed in. Right now, though, when a person opens the PDF normally, the highlighted fillable text boxes show up but not the labels with them even though I have names entered in on Name and Tooltip.
Any suggestions?Oh my gosh... I feel like such a dork!! I took a fresh look at it this morning, and the ONLY mistake I had was that I put the ending quotations in the wrong spot! I forgot to include (Optional) inside the quotations for the label!
I had this: if (!event.value) event.value = "Company Information" (Optional);
Instead of this: if (!event.value) event.value = "Company Information (Optional)";
Oi!! That was it! lol! I'm sorry about that. And yes, without those quotations, my text form fields don't work. I hadn't seen your message before (until now) asking for me to clarify that. I'm sorry! That's the only spot I needed quotations. If I don't have them, Adobe tells me that I'm missing characters.
THANK YOU SO MUCH!!! I wish there was a way to give brownie points or something on here either than "Right Answer". You have helped me so much and deserve a lot of brownie points! Thank you!!
If Adobe is reading this, please give George Johnson a reward or something, please! He was very helpful and patient with me. -
Multi Lingual Form Label Change
Hello All,
We have single oracle application custom form fmb which supports several languages, now i got a label change for spanish language so how can i change the label for spanish. While checking only one fmb they are maintaining for several languages and while opening the fmb its always opening in english. help on this is highly appreciated.
Thanks,
Devaraj.KPl post details of OS, database and EBS versions.
You need to create a separate fmb file for each language using the seeded TEMPLATE.fmb file for each language. If you want to use only one fmb file for all languages, then all your boilerplate objects will have to be in one language (typically English)
http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T458261.htm
HTH
Srini -
I have followed all the directions for "How to Create New Web Forms" everything worked perfectly up until Section 5: Changing and Translating Labels for Web Content.
I imported the Example Project with note 817876 - but am getting the following errors:
The import com.sapportals.wcm cannot be resolved
CrtClassLoaderRegistry cannot be resolved
How do I add this to my project? The steps in this document and in the SAP Library don't cover getting errors so I am turning to you for help!TA,
You need to add bc.crt_api.jar to your java build path in order to resolve this error. This JAR contains the implementation of CrtClassLoaderRegistry class. -
I am having troubles aligning the label of my form to center. When the page loads, it looks like it wants to be center aligned, but then aligns to the left. I can't tell which CSS is making it do this. Would you be able to help me narrow it down?
link is http://www.thelightingpower.com/donate-nowThat is because of the attribute position: absolute; that gets added at runtime with your jQuery custom function.
To fix, Find this in your custom.js file:
$('textarea').each(function() {
if( $(this).val() == ''){
$("label[for="+$(this).attr("id")+"]").css( "position", "absolute" ).css("z-index", "2");
}else{
$("label[for="+$(this).attr("id")+"]").hide('slide', 'fast');
And replace that chunk of code with this:
$('textarea').each(function() {
if( $(this).val() == ''){
$("label[for="+$(this).attr("id")+"]").css("z-index", "2");
}else{
$("label[for="+$(this).attr("id")+"]").hide('slide', 'fast'); -
How to hide XML Form Label with Hyperlink set to Display?
XML Forms Builder: Currently I have a label with the Hyperlink set to Display (on the RenderListItem and when clicked it will open the Show form). - I want the label (caption is Read More..) to be hidden if there is no text in a HTML editor on the Edit form. Anyone have any suggestions?
XML Forms Builder: Currently I have a label with the Hyperlink set to Display (on the RenderListItem and when clicked it will open the Show form). - I want the label (caption is Read More..) to be hidden if there is no text in a HTML editor on the Edit form. Anyone have any suggestions?
-
Hi
I'm working with the XML Forms builder, and I'm trying
to add properties as name, mail, and so on to labels
in the edit form. So that the user doesn't have to fill
this in, in a registration form.
But I don't have any success in getting it to work.
Theres nothing displayed in the labels.
Is this possible?
And if, does someone have any suggestions on how to get
it to work?
Another way to get the user information could be a link
to the users card, but how should that be done?
Thanks in advance for any help or suggestions.
Regards
Mikael LHi Mikael,
see Accessing creator information of form for details.
In addition, see http://help.sap.com/saphelp_nw04/helpdata/en/fe/2a2c407586ea01e10000000a155106/frameset.htm
Hope it helps
Detlev -
Script to extract all the form labels
HI,
I was wondering if there is a utility that can read a ".fmb" file and output all the field "labels" present in that form (including labels within tabs, subtabs etc).
Appreciate your help.
ThanksHi,
Which version of forms you are using? If you are using Forms 10g and above, you can use the Forms2XML Utility to convert the form (fmb) to an xml file and from the xml file you can get the required data.
Or else, you can write a custom java code useing JDAPI and get the desired output.
HTH.
Regards,
Arun -
Report/Form Labels Printing
Hi
I have a requirement printing one label against three columns which we display either in report/form.
Example
<pre>
|-----Current-----------------| |---- New --------------|
Empno Ename Job Sal Comn Job Sal Comn
</pre>
How can print above format in reports/forms.
Regards
Kiran AkkirajuHello Kiran,
I believe it can be done using the Named Column (row template) report template. The following post, with Carl’s example (and the thread accompany it) can get you started:
- Re: Repeat a column
- http://apex.oracle.com/pls/otn/f?p=11933:108
Regards,
Arie. -
Customise List Form Label WITHOUT InfoPath
Hi
I am trying to change the colour of a label in an NewForm, EditForm etc without using InfoPath. Is this possible? I cannot find the CSS tag when debugging using the Developer Tools on the browsers! Just for clarity, looking at the screenshot below, I want
to change the color of the font E-Mail...
Any help would be great.
Thanks!Hi,
You can use SharePoint Designer and create custom list forms- you can find more details here: SharePoint 2013: Building
Custom Forms.
Cheers,
Dan.
You can find my blog here: http://developertrack.blogspot.com -
How to display SPD form labels in two different languages?
I have a SharePoint 2010 farm with English language as my default language. Also I have Arabic language pack installed on my server.
I need the newform/editform/displayform (SPD Forms) to be shown in Arabic language also.
Can i use resource file reference (<%$Resources:wss,Employee Name%> in SPD forms? I have used this in my other .aspx pages but in SPD form it gives me error as
The Character "<" cannot be used in attribute value.
Kindly help.
Thanks and regards,
AmeinHi pars,
http://www.packtpub.com/sites/default/files/1346-chapter-6-creating-multilingual-apex-applications.pdf?utm_source=packtp…
In this link also i struck in
In page 10 of that document
The application is now ready to be translated. Everything is in place to run it in any language imaginable.To ca ll the application in another language, change the URL of your application to the following:
http://yourdomain:port/pls/apex/f?p=&APP_ID.:&PAGE_ID.:&SESSION_ID.:LANG:NO::FSP_LANGUAGE_PREFERENCE:nl
This example will call the chosen page in the application and show it in the Dutch language instead of in English. To select another language change the property nl at the end of the URL to your desired language code.
Thanks alot for ur suggestions.kindly provide more inputs.............. -
Script to show forms label - table/column mapping
Hi,
Is there a script that reads a .fmb file and generates an output that shows what is the table/column behind every label/field ?
Appreciate your help.
Thanks,
Gopalthere is no script
maybe its easier to write a library with a procedure, which loops through all blocks and in the block through each item and get those data you need.
get_form_property (FIRST_BLOCK)
get_block_property (blockname, NEXTBLOCK)
get_block_property (blockname, FIRST_ITEM)
get_item_property (blockname, NEXTITEM)
try it
Gerd -
Alignment in Smart Forms- Label
Hi Folks,
I have data in an internal table. I have to print a label. In the print preview I am able to see the data like this.
PLANT : 0120 BATCH 9
MATERIAL : 100628
MATERIAL DESC: Part 1 LIQUIDE
RELEASE/LOT : 04000000000971 DATE 12/20/2002.
QUANTITY : 1
But I need the alignment like this for any data
<b>
PLANT : 0120 BATCH 9
MATERIAL : 100628
MATERIAL DESC : Part 1 LIQUIDE
RELEASE/LOT : 04000000000971 DATE 12/20/2002.
QUANTITY : 1</b>
For the quantity field I need to condense that and can anyone explain me in detail
hw to do this.
I need to print for many records. Some fields may have data. some time space. .
In my smartform I have aligned it properly.
Thanks for your time. waiting for your replies.
with regards,
chaithanya.Hi..
Amit thanks for u r reply. In Template can we design like this
Material..........xxxxxxxxxxx.................Batch.............XXXXXXXXX
If u have any tutorial Please let me knw...
I have solved this problem...using the tabs....
with regards,
chaithanya.
Maybe you are looking for
-
Troubleshooting File Sharing Thru Network
So I'm working at a small (6 people) office, where we are all connected through an Airport base station to the main iMac G4. Someone set up this network years ago and nobody knows how to get ahold of this guy, and somehow I ended up being the default
-
Hard drive won't mount - but only on one Macbook Pro
Hi guys So I have a brand new Macbook Pro 2.4 with retina and 8gb (like 2 days old). I'm on Mavericks. This question also concerns a Lacie Rugged USB3 1TB drive, it is bus power only. My lacie won't mount on my new mac. An identical lacie will, as wi
-
Hi.. I need to change the name of an application. For this I am doing the following steps: Under the src->packages folder... there is a file application.wdapplication. I am changing this file name to newapplication.wdapplication. Then I am importing
-
Trying to make oracle-xsql-servlet to work under tomcat
I am trying setup Setup "oracle-xsql-servlet" to work under tomcat. #1. I have installed the xdk from orcale at "C:\xdk_nt_10_1_0_2_0_production" #2. I have installed "Apache Tomcat Version 6.0.14" #3. I have made the following changes to "catalina.b
-
Yosemite Time Machine memory leak chewing through memory?
I installed Yosemite 10.10 on my 27" iMac (Intel Core i5) with 12 GB of RAM. After plugging in my external drive to make a backup with Time Machine, I noticed the indicator in my menu bar from Memory Clean was red and showing less than 15 MB of free