You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Reset oj-select-one component to default

edited Jul 29, 2020 8:29AM in Visual Builder 11 comments

Content

Hello Team,

We have a add button and when it is clicked a form is shown up  where user selects the value from oj-select-one and saves. when next time user clicks on add button ,previous data is still there. I want it to be clear when add is clicked. I tried with refresh component and setting value-option object to undefined but , nothing has worked.

 

code snippet : 

 <oj-select-one label-hint="Name" id="ContactName1" required="true" options-keys.value="PartyId" options-keys.label="ContactName" options="[[$page.variables.contactsListSDP]]" value-option="{{ $variables.DummyContactLabelandValue }}" on-value-changed="[[$listeners.contactName1Value]]" >
                        
                     </oj-select-one>

 

after saving , we tried to reset $variables.DummyContactLabelandValue   to undefined (that is of type object).. but that undefined value is shown in selectone.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!