21
Views
7
Comments
Solved
Conditions to show navigation tab
Question
Service Studio Version
11.54.27 (Build 62831)

I'm creating a registration field, where there are 2 registration options (example: registration with address / registration without address) the person chooses which one they want to do.

 This choice is made through a navigation tab. One navigation tab is "with address" and the other navigation tab is "without address" (each navigation has a different form. I want to create a condition so that when the person starts filling in an entry in the "with address" field, the navigation tab " without address" becomes unavailable to be clicked and vice versa.

Solution

I have given a handler for the tab that I want to disable.


Then in that client action I am disabling the tab.


Hope this might help you.

Thanks & Regards,

Sudip Pal

Solution

Hey @vn_perpetuo ,

The previous OML explains how to use disableTab client action.

I am attaching a sample OML for your problem where I have created two tabs "A" and "B".Tab A has two input fields.If you write something in Tab A then Tab B will be disabled automatically.Although the OML names are same but implementation is different.

This might help you.Please check and let me know.

Thanks & Regards,

Sudip Pal

TabsDemo.oml

Hi Sudip

Thank you for the explanation. Now I understand how to use the component. Thanks!

Hi!

Have you tried to use the 'DisableTabItem' and the 'EnableTabItem'  ? 

Just an Idea

Best regards

Graça

Hi, I didn't know these options existed. I'll try it here, thanks!

Hi Maria, can you show me a example to do this logic? I cant find the enable/disable in tabs after pushing then. Thanks!

Hey @vn_perpetuo ,

I am giving you a demo OML for this .Please check and let me know.

I hope this will help you.

Thanks & Regards,

Sudip Pal

TabsDemo.oml
Solution

I have given a handler for the tab that I want to disable.


Then in that client action I am disabling the tab.


Hope this might help you.

Thanks & Regards,

Sudip Pal

Solution

Hey @vn_perpetuo ,

The previous OML explains how to use disableTab client action.

I am attaching a sample OML for your problem where I have created two tabs "A" and "B".Tab A has two input fields.If you write something in Tab A then Tab B will be disabled automatically.Although the OML names are same but implementation is different.

This might help you.Please check and let me know.

Thanks & Regards,

Sudip Pal

TabsDemo.oml

Hi Sudip

Thank you for the explanation. Now I understand how to use the component. Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.