Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Get a value from dynamic drop down menu to add to firebase database #81

Open
shep222 opened this issue Aug 14, 2017 · 2 comments
Open

Comments

@shep222
Copy link

shep222 commented Aug 14, 2017

The dropdown menu will populate with the list, but when I try to push the value to firebase I get an error..."Cannot read property 'value' of undefined".

THE HTML:



[[dr.name]]

        </paper-listbox>
    </paper-dropdown-menu>

THE PUSH to firebase:
addPatient: function () {
this.$.patients.ref.push({
name: this.$.pxName.value,
aptTime: this.$.pxAptTime.value,
location: this.$.pxLocation.value,
provider: this.$.pxProvider.value <<<<<<<<<<<<< THIS IS WHATS NOT WORKING
})

@shep222
Copy link
Author

shep222 commented Aug 14, 2017

for some reason it deletes the majority of my HTML. This is the line that I"m trying to get the value from

paper-item id="pxProvider">[[dr.name]]</paper-item

@bkr32
Copy link

bkr32 commented Dec 18, 2017

hey @shep222 were you able to solve this? i'm migrating to poly 2 and i'm having the same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants