0
        <PublishingWebControls:EditModePanel ID="EditModePanel1" runat="server" CssClass="edit-mode-panel title-edit">

         <div id="NBSBranchAccountName">
            <SharePointWebControls:TextField ID="BranchAccountName" runat="server" FieldName="NBSBranchAccountName"/>
        </div>



        </PublishingWebControls:EditModePanel>

I have this text field which is only displayable in editmode. How can I get the value of the form in publish mode in javascript as the normal jQuery.trim(jQuery('#NBSBranchAccountName').val()); won't work

1 Answer 1

0

You can retrive list item with javascript object model and get the field value from list item: http://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.