0
votes
1answer
100 views

Javascript in CEWP on EditForm.aspx not kicking off in Chrome

In our SharePoint 2010 Enterprise environment I tried adding Javascript into a Content Editor Web Part on a custom List's EditForm.aspx page, and for some reason the code only runs when the form is in ...
0
votes
0answers
28 views

Force Postback on a ListForm

I have a jQuery script that toggles some fields on a ListForm. It worked great on my jsfiddle, but when I added the script to a CEWP on the page via the content link, I can tell it's running b/c when ...
0
votes
2answers
681 views

Get current ListItem with ECMAScript

I need to calculate a value for a custom ListItem field, based on some values on the same form and also on some values from other lists. I should be able to do this, using ECMA Script. I started by ...
0
votes
0answers
209 views

Modal Dialogue for List Edit Form

Working to create a link to a modal dialogue box which contains the edit page for a list item. Background: I'm using SPServices to query a custom list, and render the data in a HTML table formatted ...
1
vote
0answers
424 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
0answers
34 views

How to create object of type SP.ListItemFormUpdateValue

How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side? If this is not posible, how can i read a value in a ...
3
votes
3answers
1k views

Prevent/override standard Modal Dialog close button(X) from closing

I want to validate custom modal dialog form and if its not ok, prevent form from closing. For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior. function ...
2
votes
2answers
273 views

Get Modal Dialog Close button

I have override new item form for list, opening myPage.aspx where this javascript is in the "PlaceHolderAdditionalPageHead": function fGetCloseBtn() { var closeButton = ...
0
votes
0answers
140 views

JavaScript OnChange for PeoplePicker or something similar in a NewForm.aspx

i have a document library where i added a people picker column where i can assign a person from the company. Also i have a column where the user should enter the department of the selected person. Is ...
3
votes
2answers
2k views

Disable a form text field with jquery in CEWP not working in Chrome/Firefox

I want to simply disable a text field (specifically a "person/group" field text box) from being editable on the edit form page of my list item. I have it working in IE using a Content Editor Web Part ...
0
votes
2answers
848 views

Conditional Show/Hide Field in NewForm.aspx with Javascript/Ajax

I want to show/hide a Field according to the selected value of a Choice field. How can i achieve this with javascript or AJAX? Edit: I tried this but, i cant even get the value of the selected value ...
1
vote
1answer
1k views

Show list form DispForm.aspx “in window” instead of as a dialog box

Does anyone know how to get a list form to display as an aspx page by default instead of as a popup iframe? For example, when a user clicks on a list item, DispForm.aspx opens as part of the same page ...
0
votes
1answer
2k views

How can I display checkbox or radio button choices in a Choice field vertically?

I have a list with SharePoint 2007 with a Choice column that I'd like the choices to be displayed vertically (every 2 or 3) instead of horizontally. Is there some JavaScript/jQuery I can utilize to ...
1
vote
0answers
235 views

Customizing richtextbox from formfield

This applies to SharePoint 2010. I have a requirement where users can only use a very specific set of "styles" when creating their content for SharePoint lists. As the "styles" ribbon button does not ...
2
votes
4answers
2k views

How can I Make a Dropdown box in a Form Field Conditionally Read-only/locked?

I have a drop down box form field (with values level1,level2) in SharePoint list. How can I lock the drop down box selection in the edit form.aspx whenever the condition is level2?