Disable the validation on field using netsuite api - netsuite

Can somebody help me to disable the validation on a mandatory field in netsuite field. I try to create a validation function but it doesn't work
Thank you

Go to customization > List, Records & Fields > Item fields.
Edit that custom field and on the Validation & Defaulting tab you can uncheck the mandatory field and then just save. :)

Various reasons why custom field is mandatory:
1. Custom field itself is mandatory in the 'Validation & Defaulting' subtab.
2. Custom field is not mandatory but made mandatory in the custom form
3. Custom field is made mandatory by a workflow or script
If the intention is not in general (i.e. making field non-mandatory for specific criteria), do a workflow instead of script. It's cleaner and easily editable by the users in case requirement changed.

Related

Add Custom Field to Payment, Deposit, & Refund (NetSuite)

Have a field created which was added to both Payments and Deposits in NetSuite and would like to have this also show up on Refunds. Not seeing the option to apply this to those. Is there a way I can do this?
You can customize the Refund form and choose to show your custom field on the form. If you did not specify a subtab when you created the custom field, it will be under Screen Fields > Custom when you customize the form.
Go to that created Transaction Body Field, and click on Apply To Forms button, check the Refund form checkbox.

Netsuite - add custom field to Purchase Order

Hi I want to add a custom field to NetSuite. Please guide me how to do this. NetSuite has lack of Documentation.
I tried adding a New Body Field and New Column Field, none of them add that value to the interface.
Please help me on
How to add a custom field
how to link that custom field to Purchase Order Object.
Thanks in advance...
You can create a new Transaction body field under
customization > List, Record & Field > Transaction Body Fields > New
then on the on Applies To tab you can check Purchase and on the Display tab you can set the subtab where you want that custom field to be displayed. for example say main tab.
Hope this will help you setting up your custom field :)
My guess is that you have created the field, but haven't assigned the field to a record type. Click the Applies To subtab and check the boxes of the records where you want the field to display.

Allow Fill-in Choices in survey list

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.

Sharepoint 2007 : How to disable TextBox

I am new to sharepoint 2007. I have a following requirement.
1) I would to create a custom list for employee where they can select the item and fill-out the form and submit.
Example : List --> Hard Disk --> Click --> Create new list -->
List has following fields 1) EmpID 2) Customer name (Text) , 3) Order Date, 4) Qty 5) Price
Once user submit the list then I would like to disable the EMPID field and allow same user to edit the other fields if required.
How can I disable the text field (Empid) in the Sharepoint 2007 ? I would appreciate any other alternate or better idea.
Thanks,
Regards
Vick
I would use jQuery for this purpose. Here is an example that describes how to hide a text field on a SharePoint form. Change the .hide() to .attr('disabled','disabled') and this will disable the text field.
If you need help with deploying jQuery, see this question.
I am not sure its a better idea or not, but for that i used to do for this common scenario
that
fist identify the textbox id in html source (through web browser view source) after that i wrote javascript function to disable textboxes i.e. EMPID or we can do through style sheet and apply style using javascript..
You can create multiple content types for the same list. Have the user fill out the content type that contains the EmpID field (put a link in the LeftNav that sends them to NewItem.aspx with the proper ContentTypeId). Make the default content type the one without the EmpID, so when they go back in and edit they won't see that EmpID field.
The downside to this is that they'll see both content types in the New button dropdown. You can name them in a way that makes sense (New Hard Disk Order, Edit Hard Disk Order)

Sharepoint calculated field's formula for created by

i have a sharepoint list
with 2 users for examole (user A and user B)
i need a calculated field in the list items such that if user "A" created the item the field vaule will be "X" and if user "B" created the item fields value would be "Y"
but i couldnt use [created by] in the furmiula of the calculated field !! why is that ?!! and is there another way to do what i need to do ?!
If using Sharepoint Designer is an option you can create a workflow for that list. Set it to start when a new item is created -or- edited, use a condition of "If Created_By equals ..." and an action of "Set yourfield to yourvalue", then add an Else If branch and repeat. This will always override anything a user enters in "yourfield". Takes about 2 minutes to do all of this.
I believe you can create a text field that has the default value set to [Me] which should then be usable in a calculated field.
For more complicated formulae (i.e. anything with conditional logic), try creating an event handler for the content type (or doc library). This will allow you full control to set the fields to what you desire.
The field can be hidden from the user inside the edit screens.
Make sure use the STSDev from codeplex to setup the solution for deployment.

Resources