How can I get the same fold button as workspace in form?

Wei_ Ling
Tera Guru

Wei_Ling_0-1709107496446.png

Is there any chance of achieving the same effect in the background form?

5 REPLIES 5

Mark Manders
Mega Patron

One of the OOB forms that has this, is the 'request clone' form. It's handles through a client script where the form section is 'Options'. You could try the same: 

 

function onLoad() {
	var sections = g_form.getSections();
	for( var i=0; i<sections.length; i++ ){
		if( !sections[i].textContent.startsWith("Options") )
			continue;

		// state is not closed
		if( (sections[i].className).indexOf('state-closed') != -1 )
			continue;

		hideReveal(sections[i].id.substr('section-'.length), false, true);
	}
}

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark