Collapsable autocomplete - autocomplete

How do i implement collapsable autocomplete in Jquery. I have a group and a group can have zero or many items. How do i implement this in Jquery.
Thanks

Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.
By giving an autocompleted field focus or entering something into it, the plugin starts searching for matching entries and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.
This can be used to enter previous selected values, eg. for tags, to complete an address, eg. enter a city name and get the zip code, or maybe enter email addresses from an addressbook.
Please see the documentation for more details.

Related

Place Autocomplete Address Form

I created a registration form for a website and I included the Place Autocomplete Address Form provided by Google to fill the Country, Province and City fields.
It works perfectly. However, I use Google Analytics and I have seen that a certain number of users leave the process before completing the registration, as if something went wrong and couldn’t complete it.
The form itself is quite simple, so I checked it with some possible errors.
It has several requested fields, so the form reloads partially to display a popup asking you to add the information or data in each case. The fields filled out correctly keep de information. All but the ones filled out by the Google API, which simply disappear. And I am not talking about the information added to them, the fields themselves are missing, removed from the code.
Any suggestion?
I created a registration form.
Some fields (Country, Province and City) are filled by this API:
Place Autocomplete Address Form
The code I used is on that page.
If you fill out the form and make any mistake or fail to fill any requested field, for instance, adding different passwords in the Password and Re-write Password fields, the form realoads partially displaying a message requesting you to fill them properly.
By them, the fields to be filled by the Google API are gone, removed from the code.
The problem is that when the user filled the, in the example, password and re-write password fields properly, another message popups requesting to fill the country, province and city fields.
Is it clear enough now?

How to get element id in google forms

I want to get the id of an element in google forms. I found on the internet that it can be done by right clicking on the element and opening inspect element. It is working for older forms but, for new forms, it doesn't show any id attribute. I am posting both images of inspect element.
Old forms:
New forms:
In new form google have replace id with name attribute.So do one thing, write something in textbox then rightclick on textbox and open inspect element, Here you will find item tag with name attribute which is the key you want
For eg,
<input name="entry.123456" >
Maybe I can help you in finding the id's of the element.
After submitting the form you can look for headers{Form Data} in the network section of developer tools.
You will find something like this..
entry.102708304: "Your response"
102708304 is the id..
Hope my answer was useful. Thank You.
Try pressing Ctrl+U when on the Google Website. In Firefox this will show up the complete HTML Code where you can search better. There has to be set an Id, because otherwise the text in the element couldn't be accessed
hi this has changed a bit,
you need to get a pre filled link via 3 dot menu then prefilled link , copy it into an editor and confirm these entries.
I could not find it visible anywhere in the source code and there are a ton of JS names that seem random and 0 name inputs on my form

Using ninja forms, how can I persist field values across pages?

I have a form on the home page of quotedjobs.com that I would like to persist the field values of across pages.
For example: A user enters some values in fields, such as job title (textbox), job type (list) and job description (text field). Underneath that I ask users to register on the site, but they have the option to click a link to allow them to login if they are already members.
What I would like to be able to do, is to redirect users to another form that is a copy, but allows them to login instead of register, but keep hold of the values that they entered in the title, type and description form of the previous page so they aren't losing their work.
I have seen the ninja_forms_processing variable in the docs, but I'm not clear on how to use that.
TL;DR - You can't.
As it was slim pickings here, I sent an email over to support. Got this response:
Hello,
At this time this use case is not possible in Ninja Forms. The plugin is currently unable to transfer data from field to field or between forms.
I’m sorry that we do not have a better solution for you at this time.
Thank you,

Tag users in Facebook post without using drop down

I manage a large Facebook group and once a year we need to delete a big chunk of users. I have already generated a list of these user names and their Facebook IDs, but now I want to copy-paste these IDs into a Facebook post and have the users be automatically be tagged - I don't want to go through the drop down menu that appears when you type #. (This way I can say "If your name is on this list, you will be removed" and know that the users will be tagged by facebook and will receive a notification.)
I have tried various things like #[user-id] in my post but nothing seems to work. I followed an old article suggesting something like ##[user-id:0:text] would work, but Facebook apparently patched this.
Can anybody help me figure out if it is possible to copy-paste a list of names (or ID's, or a combination with the # symbol and any other formatting) and have those names be automatically tagged in the Facebook post? I really want to avoid typing the first few characters, pressing TAB to complete and tag the name, and repeating hundreds of times.
Thanks.
Edit: Tried doing this more recently and the issue still exists. I know you can press ESC to drop out of the name popup but that doesn't work when trying to do this programmatically.
Having problems with tagging a photo when FB offers you a drop-down list of potential names? Here is the solution. Continue writing the name you have in mind. Instead of pressing RETURN right away, press ESC. The drop-down list of suggestions should disappear. Now you can press RETURN.

Getting form values from outside the form in jsp?

I just want to know if this is possible, let say I have form of a search bar that has a dropdown list that applies to the search with it on the front page and I have links on the side of recent search words which is outside of the form and I want to get the currently selected dropdown value from outside the form is this possible?
I'm using spring tool suite.
You could use javascript to copy the value from the drop-down into a hidden input field when the user presses submit. In jquery you'd do something like this: $('#mySubmitButton').click(copyFn);, where copyFn is implemented to do the copy and perform the submit afterwards (although you'll have to stop the form automatically submitting in the first place, this isn't difficult).
Alternatively, you could just widen the scope of the form to encompass the drop-down.