I'm looking for a way to use a script to change the text of a 'Submit' button in Google Form, as well as the helper text.
Since there is no way to select the output language of the form (it's auto generated base on browser settings) I would like to know if there is a way to create a script that will change the text of the said button as well as the text helper such as 'Your Answer' in the textboxes.
I would like to change it so it becomes bilingual "Envoyer / Submit".
The http://...../viewform?hl=fr trick is NOT working and therefor I cannot offer my user a choice of language.
Related
Dropdowns are useful, but they would be even more useful if the dropdown options could be formatted. For example, using bold or italic text for various selections, or changing the background color of other options on the dropdown display.
It's easy to have a cell formatting change according to the dropdown selected, but that's not what I'm trying to do. I want the formatting of the the dropdown items to be different than simple plain text.
I'm not sure changing the colour of data validation options is possible, but you can exploit the fact that Unicode fonts include italic and bold versions in their extended character sets, and use these characters instead of the usual ones to achieve some of what you want. Use an online tool like (for instance) https://yaytext.com/bold-italic/ to give you the bold/italic versions of your required text options, and add these to your validation list.
It sounds like you are asking for a way to change the appearance of the control that appears when you click the dart in a drop-down cell. The built-in controls in Google Sheets cannot be customized that way.
To implement your own custom controls, use Apps Script to implement a custom dialog box or a sidebar.
A simple script that, for example by selecting a value in a column 5 (change), changes the formatting of the text? Or do you want the text in the validation to be changed?
function onEdit(e) {
if(e.range.getRow()>1 && e.range.getColumn() ==5){
e.source.getActiveRange()
.setFontSize(11)
.setFontWeight('bold')
.setFontStyle('italic')
.setFontLine('line-through')
.setFontColor('#ff0000')
.setBackground('#ffff00')
};
}
so I basically want to utilize Whatsapp Web ability message people who are not in my contact. I whatsapp a lot of people and It's just not practical to save each and everyone of them to my contact list.
To do that, I simply need to insert this url into my browser:
https://api.whatsapp.com/send?phone=
and insert the number after the equal mark.
I made a simple input tag, but I don't know how to make my submit button open the Whatsapp's api link and also add the number I put in the input box.
Thanks
I need editable text in an Apache Wicket Application. As the text has to appear very "common-table-like", with editing only after the user double clicks on the text and so on, using normal TextFields is not really an option.
So I decided to go for the new HTML5 attribute contenteditable, which does the overall job quite fine. With the following markup and Java code I get a label that looks like static text, but after the user clicks inside the text is editable:
<div wicket:id="id" contenteditable></div>
...
item.add(new Label("id", "dummy content"));
But now I obviously need to catch some event when the user actually edits the text, as the new text should be stored back into the database. Online manuals suggest using oninput as it seems more reliable (e.g. with respect to timing issues) than onkeyup, onkeydown and so on.
Trying the event with regular HTML5 works fine:
<div wicket:id="id" contenteditable oninput='alert("oninput");'></div>
My question is now, how can I get the Wicket Label to support oninput? Overriding it and creating a custom label would be a perfectly fine solution (if I really have to), but for that I am too new to Wicket as to know where to start and how to create the correct markup and so on.
Since a div is not a form element, it doesn't get submitted when you post a form. So you have two options:
in onInput fill a hidden form element with the content and submit that using a form
send the content to the server using Ajax
Both require you to do some magic using a (Ajax)Behavior.
You can use Wicket's HiddenField to create the hidden field, and in onInput perform the update of the HiddenField's value.
You can encapsulate this by creating your own ContentEditableFormComponent by using FormComponentPanel as a starting point.
I am using the blueimp/jQuery-File-Upload basic plugin.
In a form, the input field for uploading files is, by default, on the right of the button.
A text is also written into.
How can I have the field on the left and how can I get rid the text ?
What you are talking about is standard browser behavior. When you use <input type='file'>, the browser chooses how to render that, and it can give it its own default text like 'Choose file'. I have used a workaround in the past which works nicely, provided in the link below (which will scroll you to Romas' answer). Basically you hide the file input, and declare another button that you style however you wish.
In JavaScript can I make a "click" event fire programmatically for a file input element?
I wrote a AS3 script, basically the script just a form that allow user to enter their email address. After launch the site for couple of months, I found I receive a lots of BOT spammers. I know, 1 way of prevent BOT is using recaptcha thing, beside recaptcha, is there any way to prevent bot to submit my AS3 form??
How about adding an extra input to your form and then hiding it with a CSS style.
Then if the field is filled in, you can be pretty sure it was a bot.
Bots don't generally process CSS rules so they will see the text input and fill it in
Most people have CSS enabled when they browse so they won;t see the text input and it will be blank
For legitimate users that have CSS disabled, you can add a label (also hidden via css) to the text input that tells them what to enter.
e.g. add something like this into your form
<div style="display:none">
<label for="hidden-textbox">What is 10 plus 5?</label>
<input type="text" id="hidden-textbox" name="hdn-txt" maxlength="20"/>
</div>
When you process the form submission:
nothing in the text input is a legitimate user
the value that you told them to enter in the caption is a legitimate user
any value other than empty or your specified value is SPAM and you can discard it
In addition to Nils' excellent answer, see this previous Stack Overflow question for a wide survey of some of the anti-bot measures that are currently popular.
Also, I'm not sure you'll want to use AS3, as that is both server side, and may be more complicated than you need. Still, if you used a Flash app to submit your form (rather than having form information embedded into your HTML), then it would be harder for a bot to parse and submit.