Hello from island réunion (indian Océan)
Applogize for my english please.
Using Form Designer 3.1.4 (waiting my IT service to upgrade) & SHP 2016
newbee, i read topics about managing accordion but it don't works in my simple case.
i copy the @shedev solution but it don't works .
- i want to open accordeon only if 'categorie' field = 'correction de la demande' and if it's possible make the field 'article' obligatory
- i paste the code below in the javascript editor but nothing is hapening. ? i certainly made somethong wrong but i don't find since a week of research !!
Thanks for your help / Francois
fd.spRendered(function() {
function showHideAccordion() {
if (fd.field('Cat_x00e9_gorie').value == 'Correction') {
// Enable the First Tab
fd.container('Accordion0').$children[0].disabled = false;
//Open the First Tab
fd.container('Accordion0').$children[0].open = true;
} else {
// Disable the First Tab
fd.container('Accordion0').$children[0].disabled = true;
//Close the First Tab
fd.container('Accordion0').$children[0].open = false;
}
}
// Calling showHideAccordion when the user changes the field
fd.field('Cat_x00e9_gorie').$on('change',showHideAccordion);
// Calling showHideAccordion on form loading
showHideAccordion();
});