vazco / meteor-universe-autoform-select

Meteor universe autoform select
MIT License
16 stars 10 forks source link

How to clear selected or set selected value? #39

Closed thearabbit closed 4 years ago

thearabbit commented 8 years ago

I would like to clear selected/set selected value, when I have any event on other form object

{{> afQuickField name="clientId"}}
{{> afQuickField name="productId"}}

----------------------

formTmpl.events({
    'change [name="clientId"]'(event, instance){
        $('[name="productId"]').val('');
        // Or
        $('[name="productId"]').val('General');
    }
});

But don't work, Pl help me.

macroramesh6 commented 8 years ago

same issue!!. I need to clear value which is related o another field.

goncalovelosa commented 8 years ago

Same here, but in my case I want to set a initial value, in other autoform types its possible using the value attribute but not when using universe-select.

{{> afQuickField name="productId" value='initialValue'}}

bluefangs commented 8 years ago
thearabbit commented 7 years ago

Have any solve?

kestarumper commented 4 years ago

We've decided to archive some of our repositories as we are no longer using nor willing to maintain them. Part of this process involves closing related issues and PRs. If you still need help, do contact us on opensource@vazco.eu.