How can I make input fields like that in the Mail App on OSX.
Here is a screenshot -
What I want is the ability to group text like it is shown in the image above. So, instead of having several input field (eg. in the case of the mail app - from, to, subject etc), I can do with a single one.
I do not completely understand the question here, but I'm guessing some clever use of CSS where you place a drop-down menu and an input form within a div styled to look like an input form would work?
Related
I have an embedded form collection in Symfony. Which is working nice. I am working with a manytomany assocation mapping.
Except i want to create (with javascript?) the form so that only unique values are available. In my example i have an Organisation which can exist of many users. When i add user "L" in this case and i want to add a second user i want to prevent that user "L" is available in the other dropdown.
The way i embedded the collection of forms is exactly like the documentation of Symfony has learned me. (http://symfony.com/doc/current/cookbook/form/form_collections.html)
Down below is an example of how it works now (in this example I want to prevent that in the dropdown the user "L" is available as an option.
Thank you very much!
Unfortunately, there's no way you can make the HTML form behave this way. HTML forms just do not have any composite (or dependent) <select> widgets. So, the right way to go here would be:
validating the form server-side, so that duplicate values in two select boxes are not allowed;
adding some JavaScript code to the view that renders form. Perhaps this code should listen to <select>s' onChange events, and once an event is received, the option selected in the first box should either receive a disabled attribute or get deleted.
I thought I could simplify my specific question telling I wanted to populate a text field on a form with the output of a bar code reader. Searching on the net I learnt the bar code reader can act like the keyboard and put the text on the field which has focus.
Unfortunately my needs are slightly different. I need to put inside a form textbox the code of a specific rfid which is in the range of the rfid reader connected to the host. I don't have a button to trigger the rfid detection but only an application which shows a list of them.
Is there a better method than cut&paste for moving the text string associated to a Rfid from the application to the web form ? I wrote the application which connects to the reader, so I suppose I can put a button which writes the chosen string to standard input, like the trigger of the bar code reader, but this way the input field has not the focus, so it is worthless.
How can I achieve my goal ?
Update for clarify and simplify my question.
I don' want any direct interaction with the rfid reader and the form or the web server.
I have an application which shows a list of string (in my case they are rfid related, but it is not important). I would like to push a button on the application or on the web form and populate an input field on the form with one of those strings. Don't know nothing about browser plug-ins, perhaps I could do one which mimic what the application does...That way the web form should interact with the plug-in to retrieve the data...
Thanks
Filippo
Basically, what pros/cons are there to using multiple forms in the same web page vs one form with multiple submit buttons? Any difference at?
Ah? Multiple submit buttons on a single form will all submit the entire form when pressed... there's really no advantage to having multiples, unless you're overriding how the submit process works so each button only submits it's own area. In this case they'd probably not even by submit buttons, but just buttons with sum JS code to handle submission.
Multiple forms are discrete spaces of data collection, each can have it's own submit button... but only one of them can be sent at a time (and depending on the browser you may loose what's in the other forms).
Neither approach is particularly good from a user interface perspective since it'll be confusing.
The real question is, what are you trying to do that prompts you to ask this?
The two behave differently and there are good reasons to choose one over the other.
Multiple Forms on a page allow you to send data to two different locations. A common example is to have an input form as the main focus of a page going to one location, and a search form that appears as part of the generic header/footer. These both go to separate locations and submit only the HTML form elements within their appropriate <form/>
Multiple submit buttons offer you the ability to give different purpose to a submitted set of form elements. E.g. One form may have a bunch of submit buttons all with name attributes, meaning you can add conditional logic on the server side to say: "Continue", go " Back" or even "Save for later". All reference only the form elements within it's parent tag.
Two side notes are: 1) You can't nest forms. 2) JavaScript can change this default behaviour if you wanted it to. :)
Edit: with reference to a comment you made, if you wanted to do without JavaScript (a wise choice while it's not needed), you could do some careful thinking and keep POSTing the form to itself. Each time checking which form button has been clicked (top tip, give them all the same name and you can just switch case through it) and do whatever you need to do, including performing validation. E.g: When they hit "add media", you'd save the media uploaded and return a reference of it to the screen as a hidden input. The user can then continue to add things to the other boxes and when complete, hit your save button, at which point you do all the main saving work and make sure you tie the uploaded file to it as well.
You effectively keep adding stuff to their screen until they hit the save and then you perform a save method and redirect to a thank you page (or whatever logic suits your scenario). :)
All fields in a form are sent when one of their submit button is clicked. It's for you to see if you need all fields or not.
How can I create a filemaker form where the user enters some personal details and has to choose multiple files to upload?
I want it to be an equivalent to <input type="file"> in a html form.
Is it possible using filemaker pro 6?
what do you mean by "an equivalent to in a html form." your form can look how ever you want it too look you design the look in layout mode but your not gonna write html to create a form in filemaker if thats what you mean.
not sure if you can do it in filemaker 6 but try this
create a field in your table called "attachments" and make its type a container
create a script from the script menu call it insert picture
3 add these script steps
let me know if that does what you want
Use container fields, which store files. In FM 6 they lacked a lot of the features they have currently, and they had a clunky interface, but it works.
Be careful though; you might run into the 2GB/file FM6 limit (which went away in 7) after a while.
This would be possible, including multi-file selection, in FM7+ with an addition of a plugin, ScriptMaster plugin can be used to display a FileChooser that allows multi-file selection.
I'm not aware of any plugins that can do this in FM6, but take a look at 24U SimpleDialog at least it's FM6 compatible.
i am building a webapp that will have notes fields all over the place, but i dont know what kind of markup i should use.
these are my requirements
User must be able to change the text style (bold, italic, underlined)
User must be able to create bullet lists
User must be able to create numbered lists
User must be able to change the font-size or use pre-definded headings
User must be able to add links
User must have a WYSIWYG - Editor that hides the actual markup
the last one is the most important requirement, my target users struggle even with word, so using markup style input like here on stackoverflow is not an option.
so what kind`s of markup do you know that fits ans has some fancy WYSIWYG - Editor?
if you think that i missed a important requirement please feel free to suggest it.
tia
You'll need to check out tinyMCE.
It's the best javascript-based WYSIWYG editor I've found.