How to hide and show tab based on field value 'medium and 'high''
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2015 05:16 AM
How to hide and show tab based on field value 'medium and 'high''
if risk field value high then need to show the Tab vice versa

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2015 05:54 AM
Please check these posts -
How to show tabs based on Condition ?
Hiding a section of a form based on a condition
Show/Hide Form Sections if a True/False field is selected.
Thanks,
Tanaji

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2015 06:01 AM
Use the below code in an onChange() client script on the Risk field. Please modify the code as per your requirement.
- function onChange(control, oldValue, newValue, isLoading, isTemplate)
- {
- if (isLoading || newValue == '') {
- return;
- }
- var risk_value = g_form.getValue('risk'); //Replace risk with the coulumn name of the field
- if(risk_value == 'high') //Replace high with the value of the high risk choice
- {
- g_form.setSectionDisplay('test', true); //Replace test with the section name you want to hide
- }
- else
- {
- g_form.setSectionDisplay('test', false);
- }
- }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2015 08:35 AM
Hi Tanaji,
Thanks for Reply.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2015 10:39 PM
Hi Prakash,
Please let me know if any issues.
If your query is answered please mark the responses correct/helpful and close this.
Thanks,
Tanaji