- This topic has 5 replies, 2 voices, and was last updated 3 years ago by .
Viewing 4 reply threads
Viewing 4 reply threads
- You must be logged in to reply to this topic.
Home › Forums › SPJS-Utility › ShowMenuForm?
Tagged: Show or Hide Form Menu
I see there is a hideMenuForm but is there a show or unhideMenuForm. I’m interested in turning it off unless the user puts focus on a multi-lined text field.
I’m not sure what function you are referring to (I cannot find this function in spjs.utility) – what kind of functionality are you looking for?
Alexander
Sorry! I probably should have posted this on the DFFS forum but:
spjs.dffs.hideFormMenu
This function is only used internally to hide the ribbon so I didn’t add any function to toggle it visible again, but you can use something like this:
spjs.dffs.showFormMenu = function() { var rh = jQspjs("#s4-ribbonrow").height(); var wh = jQspjs("#s4-workspace").height(); jQspjs("#s4-ribbonrow").show(); jQspjs("#s4-workspace").css("height", (wh - rh) + "px"); }
Alexander
This appears to work but I can’t seem to get it to toggle. I’m trying to only make it visible when clicking in multi-lined fields. I’m thinking focus and blur would work but those don’t seem to perform correctly. Click works but continually clicking removes more and more of the form content due to the width and height adjustments.
You can change this:
var rh = jQspjs("#s4-ribbonrow").height();
to this:
var rh = 126; // Adjust if this is not the actual height of your banner
and see if that keeps the height of the form consistent.
Alexander