Hmm. Thought of something like that but I am not an expert in coding CSS.
I now did like this but its not working. I guess I did it wrong somehow.
In my custom CSS file I put this:
.uneditable-input {
/* Reset */
box-shadow: none;
/* Overrides */
height: 22px;
line-height: 22px;
color: #696862;
position: relative;
border-radius: 0;
font-family: 'Oswald', Helvetica, Arial, sans-serif;
font-size: 11px;
font-weight: inherit;
letter-spacing: 2px;
}
I simply removed the line:
text-transform: uppercase;
Can you tell me what I did wrong?
Just changed the code in custom CSS to this, but also not working
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
box-shadow: none;
height: 22px;
line-height: 22px;
color: #696862;
position: relative;
border-radius: 0;
font-family: 'Oswald', Helvetica, Arial, sans-serif;
font-size: 11px;
font-weight: inherit;
letter-spacing: 2px;
}
Ahh nice. Got it.
In my custom CSS I changed the line to:
text-transform: none !important;
Thank you so much for your help
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
box-shadow: none;
height: 22px;
line-height: 22px;
color: #696862;
position: relative;
border-radius: 0;
font-family: 'Oswald', Helvetica, Arial, sans-serif;
font-size: 11px;
font-weight: inherit;
text-transform: none !important;
letter-spacing: 2px;
}
Thanks again.
As you can see above, this was the last try I did, and it worked.
I put all the rules in my Custom CSS, then I better remember and know what it means🙂
is there a way to make only specific form fields within a form force uppercase format in results form sent as email? For example my first, last name fields. I only want Last name to always be upper case whether the user enters lowercase name. Thanks
Hello amheng5,
You can make any input field accept only uppercase characters.
​
Add a class to any input that you want it to have only uppercase. Lets call the class uppercase_fields
Add the following css to your css file:[pre]input.uppercase_fields{
text-transform: uppercase;[br]}[/pre]
Now that field will accept only uppercase characters and therefore send the results in uppercase.[br]
Ok, so here's my code for email message and TCPDF code
<td class="uppercase_fields" align="left" valign="top" width="70%">{data:last_name}</td>
​
I entered in my css file:
​
input.uppercase_fields{ text-transform: uppercase;}
but results don't make last name Uppercase. Please let me know where I need to correct the code. Thanks
Hello amheng5,
On the "label to be the same as the other fields" issue i would guess that all the other fields are required and that one is not, so try that.
​
Did you do it the way i told you or in some other way?
Setting the field input provided by the user as uppercase should work for all cases Email, PDF and Database without the need of the "embedding code inside email section".
When the user writes his last name in uppercase it will be kept and handled that way.
Do you have a link of the form?
yes I did your suggestion, but the results were that the email message did not reflect uppercase last name nor did the TCPDF file did not reflect the uppercase last name which is my ultimate goal. Showing the uppercase as the last name is filled in on the form is fine but not the end result which is the appearance in the confirmation email to user or the TCPDF file.
​
here link....using basic contact form
https://meet-international.org/basic-contact-form.html
Hi amheng5,
​
I think that you need to use the PHP strtoupper() function in a Custom Code action before the Email and TCPDF actions to format the submitted value.
​
Bob
Thanks Bob i also had trouble with the correct syntax.
Really trying to get coding correctly. This is not working yet. I've placed this code under load tab 1st position.
​
$temp = $this->data('last_name', '');
$temp = strtoupper($temp);
$this->data('last_name', $temp, true);
$this->get($temp);
return ($temp);
​
No uppercase last name is being saved in database or appearing in email or TCPDF.
​
Really appreciate your patience in helping me.
I think I finally figured out the php code and I get the results I want in both the TCPDF & email message. Here's my code.
$temp = $this->data('last_name','');
$temp = strtoupper($temp);
$this->data('last_name', $temp, true);
echo file_get_contents($temp);
I placed after Verify data, catpcha but before "Save Database" sections.
Hi amheng5,
​
The last line should not be needed, the thee lines I posted should change the last_name to be uppercase. You can add a Debugger action to check that is working.
​
Bob