How to hide two fields in SharePoint list when a dropdown value selected?
Hi all,
I have a SharePoint list which have four columns 1 Title 2.Type (Dropdown: option1:Issues Option2:Risk) 3.Risk Name and 4.Risk type. If 'type' value is 'Issues' then I need to hide field 3 and 4. In other words, default value in dropdown should be 'Issue'
and want to hide field 3 and 4 are onload without using InfoPath.
How to achieve this? Thanks in advance!
You can make use of jquery for the same. Add script editor webpart on the page and access the dropdown value and based on the value you get, show or hide the fields. Below are some pointers.
http://sachinvkatkar.blogspot.in/2013/02/hide-fields-from-sharepoint-newform.html
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/50aa6f8d-f742-4400-82f3-7949ab1c215e/need-help-manipulating-form-fieldsrows-using-jquery?forum=sharepointdevelopmentprevious#802d9d4d-c19b-4752-a4fb-e38f40f50c51
http://social.technet.microsoft.com/wiki/contents/articles/21730.sharepoint-2010-conditionally-hide-fields-on-standard-list-forms-using-jquery.aspx
http://sharepointnadeem.blogspot.in/2013/09/sharepoint-showhide-list-column-based.html
Geetanjali Arora | My blogs |
Similar Messages
-
How to compare two fields from different list sharepoint designer?
hi All,
I need to add a value to a field using SharePoint designer workflow. The value is from another column.
for example list A has the field has loginID, and another list B has loginID amd another column called Desig.
i need to compare both and get the Desig field and store it to a column. how do i do that in sharePoint Designer workflow.Hi,
you can create a workflow variable ex.Test. and add an action set Workflow variable. Then you have to set this variable value using lookUps. something like(in look up window)
Data source: Choose List B
Field from source: Choose Desig
Then under find the list item
Field: Choose login Id
Value :(Again open lookup window by clicking "fx") and in this window choose
data Source: List A
field from source :LoginId
and click ok.
attached is the image for your reference. (I am using other lists,you can change appropriately ) -
How to get value with two parameter fro sharepoint list in SSRS reporting
Hi
I am using Sharepoint list and fetching data in SSRS.
Using three parameter as Department,Section and subsection.
with filter everything working fine,but if i use category All and Sub category all for particular department,unable to get record.
please let me know how to implement.
Help will be appreciated.
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| TwitterHi Hasan,
Per my understanding you want to add mutilple value parameters to filter the data in the sharpoint list datasource report, right?
I have a test based on the step by step details information in below link and all works fine which will make the multiple value parameter works fine:
https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
Add the custom code from above link
Parem1 is the parameter which get values from a query and with all the values(duplicate value),please setting as below:
Param2 is the parameter which will display in the report have done the deduplication, check the "Allow Multiple values" and then Specify the available value and default value using below expression:
=Split(Code.RemoveDups(JOIN(Parameters!Param1.Value, ",")), ",")
Add the filter and preview.
Similar thread below for your reference:
SSRS reporting with sharepoint list using Distinct and Multivalue
parameters
If i have some misunderstanding, please try yto provide more details information about your requirements.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Creating auto-increment field in SharePoint List
In SharePoint, we can create the auto-incremental field by many ways, I am going to discuss two ways of doing it.
Calculated field
Item Event Receiver
1. Using Calculated field:
Using this we can accomplish it without doing any programing and it is a relatively simple way of doing it. By using “Calculated” column in SharePoint List we can create auto-increment field. We can accomplish this by creating a new column and choosing the
column type as “Calculated (calculation based on other columns)”. And in Formula field, we have to enter [ID]
In fact this will be using the values from “ID” field from SharePoint list that starts from 1.
For example, if we want to start our auto-increment column from 100, we can modify the “Formula” field of Create New column screen, we can have to enter [ID] + 99
For detailed info please follow the blog I wrote here: http://faisalrafique.wordpress.com/2011/03/19/creating-auto-increment-field-in-sharepoint-list/
2. Using Item Event Receiver:
By using this strategy, users have advantage to edit the existing values, we can also avoid it by making field read-only on feature activation. Using item event receiver, on ItemAdded event, we have to find the highest value among previously added items
and then save the incremented value to current newly created auto-incremental column.
For code of event reciever please follow the blog I wrote here:
http://faisalrafique.wordpress.com/2011/03/19/creating-auto-increment-field-in-sharepoint-list/
Happy CodingUse Sharepoint Designer to create a Workflow for the list containing the field to increment. For my project I had an Invoice field that I wanted to start with 1001 and increment from there so I made the following workflow to do this.
In the new workflow screen in Sharepoint Designer create two actions in Step 1:
Calculate Current Item:ID plus 1000 (Output to Variable: calc)
then Set AutoIncrementNumber to Variable: calc
This is just a guide. If you just want the auto-increment to start with 1 then you can just use this step
Set AutoIncrementNumber to Current Item:ID
Also, make sure you select the correct name for your field in the Workflow action instead of AutoIncrementNumber.
Save the Workflow, close it, and then open it again in Sharepoint Designer. Check the box for "Start workflow automatically when an item is created." Save it again and then click on the Publish button to make it active on the sharepoint site. The value should
now increment for each new item created in the list. -
Hi All,
i have date type list field in sharepoint list and i have created one form in sharepoint webpage.
Now i want to save that field from shareepoint webpage, its declared "t1.text" but its showing error.
How can i save this field?Hi AnilKarthink,
I wrote a Technet Wiki article on saving data to the various SharePoint fields. You can view it here: http://social.technet.microsoft.com/wiki/contents/articles/21801.sharepoint-a-complete-guide-to-getting-and-setting-fields-using-c.aspx
Regards, Matthew
MCPD | MCITP
My Blog
View
Matthew Yarlett's profile
See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos -
How to Hide some Rows in a List view Web Part using JavaScript ?
How to Hide some Rows in a List view Web Part using JavaScript ?
Here is the code that worked for me:
var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
for(var i=0, n = Elements.length; i < n; i++)
if(Elements[i].innerHTML=="India")
Elements[i].parentNode.setAttribute("style","display:none")
WebPartWPQ3 -> ID of webpart Div
ms-listviewtable -> class name of table in Div
ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text -
How to hide the field from the view in the webdynpro application?
Hi Gurus,
I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
I got a few inputs from forum that we can achieve this by implementing the following steps..........
Create In context => Value attribute => Say Visibility
Go to its properties
Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
In View Layout
Select UI Element Set Visible property to this context variable Visibility.
In wdDoModifyView() You can set this property to false
wdContext.currentContextElement().setVisibility(false);
Can you people tell me where to create the value attribute........
In the view context or in the component context...........
and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
Please calrify this ASAP...........
Thanks in Advance,
DharaniHi Manoj......
Hi Murutuza,
As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
But if I deploy the application and see still am getting the same field dispalying in the screen.........
I even tried putting this code in wdmodifyview method.........same results........
Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
Thanks in Advance,
Dharani -
How i hide a field of a custom view in OAF 11
Hi, im a new developer of OAF11.
What should I do, to customize the Purchase Order screen, if then the requirement is to hide the field that i insert from extended VO.
What I did was modify the XML of the page to add the field and then extended the original AM.
I added the extended view into the custom AM to prevent that fail with the field that i insert.
I must clarify that I modify the path of AM default for the path of the custom AM in the XML, then i upload the XML with the command import, and i see it the field in the page.
I tried to hide another field that i created by customizing the page, but I couldnt do. That´s why i insert directly the field in the XML original.
I Try to customize the driver involved with the page, but nothing happened.
First try it on the controller Father and after the son.
The page is in the POS module (iSupplier), and is POSVIEWPOG (PO Details).
The code that attempts to hide the field is:
OAApplicationModule am = paramOAPageContext.getApplicationModule(paramOAWebBean);
OAViewObject oaviewobject1 =(OAViewObject)am.findViewObject("PosViewHeadersVO");
if (oaviewobject1 != null)
OARow row = (OARow)oaviewobject1.getCurrentRow();
String vCustomType = (String)row.getAttribute("TypeName");
if (vCustomType.equals("Blanket Agreement"))
OAMessageStyledTextBean vHideField = (OAMessageStyledTextBean)paramOAWebBean.findChildRecursive("drbQuantity");
vHideField.setRendered(true);
else
OAMessageStyledTextBean vHideField = (OAMessageStyledTextBean)paramOAWebBean.findChildRecursive("drbQuantity");
vHideField.setRendered(true);
Can anyone help me?
If im grong other solution that i think is:
How I can put a field on a page with code and how to hide the field with conditions?, consider that the field is from the VO extended.
Thanks!!!Hi Yichao,
Chk these links
https://help.sap.com/saphelp_nw04/helpdata/en/5a/0c889a4d5911d2a5fb0000e82deaaa/content.htm
http://help.sap.com/saphelp_45b/helpdata/en/cf/21ec5d446011d189700000e8322d00/frameset.htm
thanks and regards
srikanth.p -
How to hide a field from table maintenance view?
Hi,
How to hide a field from table maintenance view?
The field is used for data created date. I need to hide it from display.
ThanksChk this link.
http://help.sap.com/saphelp_nw04/helpdata/en/66/33f52010dd11d6999300508b5d5211/frameset.htm
Maintenance Attributes
You can assign a maintenance attribute P to individual fields in the maintenance view definition in the Dictionary (SE11). It can be H (hidden)
H (hidden)
A field flagged H is not displayed on the screen. This field must also be filled in the background by a routine at an event.
The system writes R and H fields to the database like all other fields when a new data record is saved. -
How to hide input fields on selection screen using variant attribute
Hello all,
I want to know how to hide input fields on selection screen using variant attribute conpletely.
As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
I want to hide the field completely. Di you know how to do ?
Thank you for your support.
Regards,
Hideki KozaiUse this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
Otherwise
in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
Regards
Marcin -
Create a Lookup for ProjetServer field in SharePoint List item
Hi,
I would like to display values in custom fields of MS Project Server 2010 in Ms SharePoint list 2010. The values ought to be displayed as lookup in a field of Listitem form. I would like to futher query and populate certain fields in New
Items form from Project Server based on the value in the lookup.
I am looking for guidance to implement this. Any help in this regard will be appreciated.Abhijit,
You could do this by creating an External Column, connected to an External COntent Type from Project Server.
Andrew Lavinsky has several good blog posts on using ECTs in Project Server. Here is an example: http://azlav.wordpress.com/2011/04/05/creating-a-centralized-document-repository-with-external-content-types/
Cheers,
Prasanna Adavi, Project MVP
Blog:
Podcast:
Twitter:
LinkedIn:
-
How to hide mandatory field in OAF page through personalization
Hi,
Could u please help, that how to hide mandatory field in seeded page.
This could be achieved through personalization only.
Thanks,
Ramachandra.
Edited by: 927747 on Jun 21, 2012 2:16 AMyes you can hide that field by simply set the render propert to "false" using the personalization.
Regards,
Vijay Reddy. -
How to hide document fields in Bid Invitation
While creating Bid invitation I need to hide some fields e.g. Attachements, upload a document, description, button Search & Add. These fields are available under tab Header data -> Documents.
BADI 'BBP_UI_CONTROL_BADI' works to hide Bid Invitation Basic data, but not for above.
Can anybody let me know how to hide above fields.
Nilesh KumarHi,
I dont think there is any BADI/screen variant for this requirement.But yes,if any of the 2 are available in the std,ITS template changes should be avoided.
The foll are the screen variants available in SRM 5.0:
Item data overview in the invoice without purchase order reference: Screen variant BBP_IV_NON_PO; Method GET_SCREENVARIANT_INV
Item data overview in the invoice with purchase order reference: Screen variant BBP_IV, Method GET_SCREENVARIANT_INV
Item data overview in the confirmation: Screen variant BBP_CF; Method GET_SCREENVARIANT_CONF
Item data overview in the confirmation for time recording: Screen variant BBP_CF_TIMEREC; Method GET_SCREENVARIANT_CONF
Item data overview in the purchase order: Screen variant BBP_PO; Method GET_SCREENVARIANT_PO
Item data overview for contracts: Screen variant BBP_CTR_ITEMLIST; Method GET_SCREENVARIANT_CTR
Item data overview for selection of contracts: Screen variant BBP_CTR_ITEM_SELLIST; Method GET_SCREENVARIANT_CTR
Search results for changing/processing a purchase order: Screen variant BBP_SEARCH_PO_IN_PO; Method GET_SCREENVARIANT_SEARCH
Search results for entering an invoice and/or confirmation: Screen variant BBP_SEARCH_PO; Method GET_SCREENVARIANT_SEARCH
Search results for entering a purchase order: Screen variant BBP_SEARCH_SC; Method GET_SCREENVARIANT_SEARCH
Search results for displaying/processing a bid invitation: Screen variant BBP_SEARCH_BID; Method GET_SCREENVARIANT_SEARCH
Search results for displaying/processing a bid: Screen variant BBP_SEARCH_QUOT; Method GET_SCREENVARIANT_SEARCH
Search results for displaying/processing an auction: Screen variant BBP_SEARCH_AUC; Method GET_SCREENVARIANT_SEARCH
Search results for displaying/processing an invoice: Screen variant BBP_CHANGE_IV; Method GET_SCREENVARIANT_SEARCH
Search results for displaying/processing a confirmation: Screen variant BBP_CHANGE_CF; Method GET_SCREENVARIANT_SEARCH
Search results for entering/displaying/processing/status of a shopping cart: Screen variant BBP_SC; Method GET_SCREENVARIANT_SC
Worklist for Sourcing: Screen variant BBP_SOCO_WL; Method GET_SCREENVARIANT_SOCO
Work area in Sourcing: Screen variant BBP_SOCO_GA; Method GET_SCREENVARIANT_SOCO
Overview for the budget display: Screen variant BBP_BUDGET; Method GET_SCREENVARIANT_BUDGET
BR,
Disha. -
How to hide ,unhide columns in ALV List
Hi all,
How to hide ,unhide columns in ALV List..
Plz guide me.
Thanks in advance..
AlbertHi Joseph,
Check the following thread:
Hide Unhide columns of ALV grid Report.
Regards,
Archana -
How do I remap fields in Visio shapes when pointing to an external data source?
Hi,
I'm creating an organizational chart (org chart) in Visio. It refers to a SharePoint list. in the SharePoint list there is a column called FullName. This is the one I want to map to the Name field in a Visio shape. How do I remap fields in Visio shapes when
pointing to an external data source?
Learning SharePointMark,
Unfortunately the required field/column names are hard coded in the add-in.
al edlund
Al Edlund Visio MVP
Maybe you are looking for
-
Contour Plug In For Illustrator
Hello everyone... Thank you in advance for any help you may be able to provide. Perhaps there is a thread for this already. I apologize if that is the case. I work for a manufacturing organization creating technical illustrations, instruction sheets,
-
Have a new iPad 5 Mini with the iOS 6.1.3 Trying to open up a webpage in safari and keep getting the message "You do not have permission to view "ArWx" " along with a No Permission title on the tab. My cookies are set to always accept. Anything th
-
Is it possible to get a refund??
I recently bought the wrong cd by mistake. And I was wondering if there's any way to either. Get money back, store credit or something similar. Please I'll really appreciate a good answer.
-
How to handle more than one button in a form?
Hello Java fans, I am new to Servlets. I am facing a problem in java servlet. I tried to place two buttons in the form. Both buttons has to invoke different servlets. How to associate action to each button? Thanks in advance, SMVEL
-
Work flow related transactions r not working
hi ppl, I have been assigned in a new project. When i check out none of the workflow related transactions r working for me. When i informed my BASIS guy he is asking me for the list of transactions. Is there any specific role or access for