Allow Fill-in Choices in survey list - sharepoint

I have Creted a survey in sharepoint 2007.To add a comment box at the end of each question,i have selected ALLOW FILL-IN-CHOICES to be yes..So when i check my servey on site,it comes with a default tet"SPecify your own value" Is there any way i can change it and put my own custom text.
Thanks

when you say "...change it and put my own custom text." I assume you don't want the field to say "Specify your own value" as the description?
In my experience, you can't do it OOTB, you need to edit the edit.aspx form for the list in SharePoint Designer. If you've never done that, I would recommend you read up on how do alter the 3 forms of a list.

Related

How do i make a manually added value in a choice column persist

I have a Sharepoint list with a "Choice" with "Can add values manually" checked.
How do i make a manually added value in a choice column persist so that is available when adding and editing other records?
I created new list on my Office365 SharePoint site. When in classic mode, manually entered values are not available while editing/creating new list items regardless the choices are displayed in a dropdown, radio buttons or as multi select checkboxes. When switching from classic to modern SharePoint experience, manually entered values are available while editing/adding list items. Hope this helps.

Sharepoint How To Uncheck Other in MultiChoice

I'm using SharePoint Office 365 Online.
I have a list with multiple choice including an option to write in your own answer. However, every field I create with multiple choice defaults to a auto check on the optional add on. I would rather there not be any checkmarks. How can I remove it?
See screenshots of settings. Also using InfoPath 2013 for design help.
Copy of list settings:
If you would like the check mark to go to a different option for example "Pick and Pack" under the Default value make sure choice is highlight and type in "Pick and Pack"
If you do not want any value to be seen in the Default value click calculated Value and leave empty.
Hope that helps!

"Hidden" columns in Sharepoint 2007

I'm trying to make a custom list for inquiries, where users will fill in some information such as "Name", "Reason" etc. When they've finished filling in the information and added the item, the administrator will then go through the item, and fill in some new columns that the user hasn't been able to fill in.
I hope you understand me, otherwise you're more than welcome to ask questions!
With SharePoint designer 2007, you can use the SPSecurityTrimmedControl who enable you to show/hide form field (or site action...).
Syntax :
<SharePoint:SPSecurityTrimmedControl PermissionsString="ManageLists" runat="server">
WHAT_YOU_WANT_TO_HIDE_HERE
</SharePoint:SPSecurityTrimmedControl>
For the PermissionsString, all values HERE
You'll need to use SharePoint Designer. You will create custom new and edit forms. This way when the user fills in the new form, only certain fields will appear. Then when the administrator edits the item using the edit form, they will have access to more fields.
Please see this link for more information.
Try making a copy of the form you wish to edit by copying and pasting to the same folder. Then click on the web part for the form and the code above will highlight . Look for tags IsVisible and change it from "true" to "false". This will hide the default form. Do not delete the original form.
Click on the web part in the design view then press your right arrow. This will move the cursor to right after the web part but still within the web part zone. Go to the Insert menu, select SharePoint Controls then Custom List form. A small dialog window will appear, select the list name from the first drop down, then select the content type from the second drop down. Finally select which form you want to insert, New, Edit or Display. Click OK. The new form will be displayed under the default form, and you will then see all of the fields in order and you can add or remove as you like.
If one did not want to edit the pages, couldn't one use Jquery to hide the fields? I have done this with SPservices. to check the user credentials if you will and then if matched display the hidden fields... all this is done from a web part...just a thought...I actually learned something great today.. great replies.

How do I set a SharePoint list field in NewForm.aspx based on an input radio button?

I have modified the NewForm.aspx page for a SharePoint list, and am changing the visibility of certain div's based on the value of radio input buttons. I'd like these values to be passed to a list field as well. I have a couple of questions regarding this:
1) How can I pass the Yes/No value from the radio input to a SharePoint list field?
2) Can I drop a Yes/No field from the list on the form and use that to control the visibility of my div's?
Thanks.
Since you're already using JavaScript, on your NewForm.aspx you could probably use SPUtility.js; full disclosure, this is an open source library I maintain.
Both of the options you mention are possible. I haven't added support for Yes/No fields (as of v0.3) but you could probably do something like this.
Create a single line of text field (will hold your value in the list). Lets call it "Text Field".
Based on our radio button input, call SPUtility to set the field's value:
SPUtility.GetSPField('Text Field').SetValue('Hello world!');
You could also probably hide "Text Field" so they can't see the value change.
Or... if you wanted to go with option #2, you could help me add support for Yes/No fields. :)
Hopefully this helps.
You can use our Smart List Pro product to modify your list form. We have various capabilities, such as showing/hiding fields depending on values of other fields and user identity, tabbed interface and much much more.

How to validate data input on a sharepoint form?

How does one verify a text field with another list's column? I am currently populating a Drop down list with a datasource and then comparing the text field with items in the dropdown using javascript. Is there a better way?
The second problem I am having is how to trigger the Validate Function.
I am aware of two custom forms for adding data to a sharepoint list. One is created using The Dataview Webpart in Sharepoint Designer and the other is created using the List Form Webpart in Sharepoint Designer.
I have a DataFormWebPart I created using Sharepoint Designer Insert Dataview ->Insert Selected Fields as New Item Form. This gives Save and Cancel buttons at the end of the form. How do I intercept the Save button event?
I found one solution but it only works with the NewForm page that has OK Cancel Buttons. http://www.codeproject.com/KB/sharepoint/Control_validation.aspx
You'll have to use an event handler if you want to validate the state of multiple fields. You can use the ItemAdding/ItemUpdating events if you want to cancel an item which is being added/updated.
properties.Cancle = true;
properties.ErrorMessage = "Your validation message.";
http://msdn.microsoft.com/en-us/magazine/cc163318.aspx
http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx
can you add query strings into the formula box for validation?
e.g. like this:
^[a-zA-Z]{2}[0-9]{6}[A-Za-z]{1}$
which validates against a national insurance number.
sharepoint says the column must = true,
so could I enter something like
[column name] = ^[a-zA-Z]{2}[0-9]{6}[A-Za-z]{1}$
I think you are trying to build a tool like this one called SharePoint Form Validation.
If so, take a look at this blog: http://office.microsoft.com/en-us/sharepointtechnology/HA101054791033.aspx?pid=CH100650061033
Hope this helps!

Resources