Is it possible to get the value of a person-type field from a custom list before hiding it with the $ (document) .ready method?
I really need to get that value and I do not want the field to be seen on my page
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityIs it possible to get the value of a person-type field from a custom list before hiding it with the $ (document) .ready method?
I really need to get that value and I do not want the field to be seen on my page
jQuery solutions will always fire late in a jQuery ready event (once the page has loaded)
Same applies for any JavaScript solution... the DOM needs to be ready before you can do something with it.
instead, add CSS to the page before the field you want to hide is loaded
.ms-formtable tr:nth-child(1){
display:none;
}
Will hide the first TableRow on the Form
You can wrap this in a <style> tag inside a Content Editor WebPart positioned above the Table
The field is still in the DOM, so now you can use JavaScript to show it (set it to table-row
) if needed.