Skip to Content
Menu
This question has been flagged
2 Replies
2429 Views

hi all ,,,,i have a selection field named "rule type",,,,,,,

on each rule type there is a certain tab which is to be opened when specific type is selected,,,

what i want is that tab should be auto clicked,user don't have to click it,,,,

how to do it??

Avatar
Discard
Author Best Answer

@ravi gadhia can u nplz provide the guidelines??

Avatar
Discard

So the basic steps are

1) create a new widget using extend FieldSelection fields

2) set page same page name as selection key name in from view XML definition

3) override _setValues value method of FieldSelection. in a method, you can find `key` of the selection

4) select the correct tab to define in step 2 using jquery and using bootstrap API* .tab('show') change the tab

*https://getbootstrap.com/docs/3.3/javascript/#tabs-usage

Best Answer

you have to customize javascript to achieve this functionality.
if you are willing to do it I can provide basic guidelines. 

Avatar
Discard