DOM - Select Value from a Field that has a Search Component and a Drop Down - html

I have been working on this forever. I have attached a first picture of the steps I am trying to do in VBA. This particular field that I have having trouble populating for a client of mine appears to be a drop down but when you click it, it has a search field. I know the option value I want the field to be set to but using doc.getElementbyID("id_referrer").selectedIndex = fieldValue is not working. See the first picture for the steps of what I'm trying to do, then the second picture for the behind the scenes look at the classes and then all the different commands that I've tried to populate this field. The save button works, but nothing ever is populated for the Referrer or it bombs.

Related

How to display the results of a search Query (done by clicking a "Search" Button) in a Subform?

I'm working on a DB in Microsoft Access 2016 and created a search form with multiple filters and then a Search button. It works perfectly fine, it shows the results in a query table that opens separately but I would like the results to be shown on the form page right below the button.
I tried:
creating a list box and setting the row source to my query
dragging the query itself on my form page to create a subquery and it only every data in the DB. The query is still functional, it opens in another tab and works, but the subform doesn't change at all
creating a combo box and displaying the results after pressing the button in the said combo box
adding another button in the subform to run the query but it has the same outcome: results displayed in a separate tab.
pic of what I want my form to do
I attached a pic, that's not my actual DB. Basically I want the box to display my results only after clicking the button.
Nothing has worked :( is there anything else I could try? I would gladly post my .accdb file if it's easier to understand what I mean.
Thank you!

Highlight fields in form that have been modified

I was wondering if someone can give me a general guideline or example for the following. I have created a form with several input box fields. When a user inputs something, the field highlights it orange. When a user goes to another field, the highlight goes away and the new box gets highlighted. When the user hits "save" button, the form gets saved. When the user hits "modify" button, it allows them to change the values in the fields. However, this time I would like to have the highlighted box stay highlighted on all the fields that have been changed (and obviously the fields that are not touched remain not highlighted). Is there anyway someone can send me a tutorial or create a quick example to demonstrate this? I am using Angular 1.5 and used Bootstrap to create a simple form.
Thank you
You Can use $touched property to know whether user clicked on that particular form field.
Ex:
custFrom.inputName.$touched
To know actual value modification use $dirty in the same way
Ex:
custFrom.inputName.$dirty
Please find working plunker

Hyperlink box (txtbox) on Access Form won't allow drop

I have a MS Access form that is bound to a query in the database. I added a textbox and added a row source to a Hyperlink datafield in the query. When I open the form, it won't allow me to drop a file into the textbox.
Here's the deal. When I follow this EXACT same process on a new form, it works perfectly. That is, I open a blank form and I bind the form to some new query, let's say qryNewIdeas. Then on the blank form i add a textbox, let's say Text0. Then, when I select Text0, I go to the data tab - row source and choose the dropdown arrow to select the hyperlink field, lets say NewIdeasAddress. I click SAVE and open the form. It works PERFECTLY.
BUT, when I repeat this on an existing form (the one where I need the thing to actually work), it does nothing. It adds and changes the textbox to a hyperlink box (I note this because of the blue underlined word that appears in the box). But it won't allow me to drop files to this location.
I tried commenting out ALL of my VBA code to try to make sure that something wasn't hindering it (say in an OnLoad event) AND I've checked all of the form and control box properties and they seem to be the same in both the existing form and the test form.
I can't determine why it works on one form and not the other; Solution needed.
If you have access to "the data tab - row source ..", you are in design view.
When you later open the form, you are in form view, a completely different animal which specifically prohibits design changes.
It sounds like you will have to rethink your concept.

Display hyperlinks to a webpage in each cell as a button in Access 2010

I have a table in Access 2010 called Table1. Column NCBI contains hyperlinks to webpages. I would like to display each hyperlink as a button in each cell and the caption for that button to be the field value from the same row one column to the left, the column Gene.
Does anyone know how to accomplish this?
First you must have the table containing the website information. In my example I have a table called Websites. In the table there is two fields: URL which contains the direct URL such as http://google.com and WEBSITE_NAME which is simply the name of the website "Google".
Create the form however you would like it to look using whatever Default View that you would like, however make sure that the Record Source is set to the table containing the website name's and URL's. In my test one I used Datasheet.
On that form make sure at least the WEBSITE_NAME field is showing on form in a textbox, in mine I called it txtWEBSITE_NAME. There is a property that belongs to the txtWEBSITE textbox called Display as Hyperlink set that to "Screen Only".
Then go to the events tab of the txtWEBSITE, go to the On Click event and click the three dots and add this code to the sub procedure:
Private Sub txtWEBSITE_Click()
If Nz(Me.URL, "") <> "" Then
Application.FollowHyperlink Me.URL, , True
End If
End Sub
The Me.URL basically just says to use the URL that corresponds to the Website that was clicked. The Nz() function basically just checks to make sure that there is actually a URL that belongs to the website that was clicked.
You can add in your own error handling or validation checks but this is the barebones system that you can use to do what you were looking for.

Autocomplete Chronoform in Joomla 2.5

I'm creating a simple form using Chronoforms, but so far I haven't been able to solve a small problem.
I would love to load two or three fields in a search done by the autocomplete element, i currently have two autocompletes working, but i can't seem to be able to load the other values into the corresponding textboxes.
I'm including the link to the form
http://cfobb.ca/index.php?option=com_chronoforms&chronoform=nomination_form
and as it can be seen, the first two fields in the first tab are working autocompletes, but i would love to have them linked so when the user chooses in any of the two, the other automatically gets filled. That selection would also trigger another sql query (that i already have, nothing fancy) that would fill the School Name drop-down menu. Also there's this code in the help tab
$form->data['_PLUGINS_']['autocomplete_processor']['result'];
but i don't really know how to use/handle it
Thanks