user can see data in hidden file

hi

I customized a sharepoint list with InfoPath 2010.and published it.

I used buttons in my forms and have several field that keep numbers in them.

I want when users click on item in list and then select View Item in the ribbon in the list and see the form ,

they can see the data in hidden button.

is there any way?(they can see the data in hidden button)

plz help me

January 9th, 2015 10:37pm

Place all the controls in a section and apply rules on the button click. You can show and hide the default fields and based on button click show and hide the relevant section.

See this - http://sharepoint-mattharmon.blogspot.com/2013/02/hiding-fields-in-infopath-2010_21.html

Free Windows Admin Tool Kit Click here and download it now
January 9th, 2015 11:18pm

hi

thanks my friend for helping me

but my problem is that I have some field that should be hidden in edit view but in display view it must be shown

I want when they click on view item they can see the hidden fields

plzzzzzzzzzzzzzz help me

January 10th, 2015 7:50am

Leili,

For this you need to create 3 separate view for 3 separate purpose(New,Edit and Display forms) and then from sharepoint designer you need to mansion which form for which purpose.

Once you had established these 3 view, you can add conditional formatting in editifs.aspx to hide the filed not in new or view.

Below is clear instruction for 3 separate views.

Individual New,Edit and Display forms for SharePoint using infopath forms

Copy & Paste: 

  1. In the InfoPath designer, where your form is opened, , click on Page Design tab on the ribbon.
  2. You would be able to see the list of views available as a drop-down and also an option to create New View. You will be already having a view named Edit item (default) displayed in the drop-down.6581
  3. Already having a view for Edit form, we have to create 2 new views for New & Display. Click on New View.
  4. In the pop up opened type the name of the view(say Display Item) and click OK.
  5. Now you have an empty view, where you can add fields(from right side pane displaying fields from datasources), modify the layouts, adding rules, hiding columns. The changes you do in this view is going to affect only this view. If you want to replicate the views, just select all & copy the contents from one view & paste it in your new view.
  6. You can create another view (New Item) following the steps 3-5.
  7. Once you have created the views and done with your changes, publish the form.
  8. Now having 3 views for 3 different forms, you need to make your SharePoint list aware that which form to use which view.
  9. Open the list in SharePoint Designer, in the lists detail page, under Forms section, generally you will seeDispForm.aspxNewForm.aspxEditForm.aspx. In addition to that since you have edited this list in infopath you will see 3 more forms namely displayifs.aspxnewifs.aspx & editifs.aspx.
  10. You need to set your views for each of this form. For each of the forms do the following steps.
  11. Open the form, select the form(highlighted in below snapshot), right click and select properties.6582
  12. In the properties window opened, under Misc header, set the DefaultView value to the view name you have created.
  13. You will be setting the values as below
    Form Name Default View Name
    displayifs.aspx Display Item
    editifs.aspx Edit item
    newifs.aspx New Item
  14. Now browse the list in IE to see different views set for different forms.

Free Windows Admin Tool Kit Click here and download it now
January 10th, 2015 6:51pm

Hi Leili,

You can add the JQuery code in ediifs.aspx page to hide the particular field elements (detected by IE F12 tools) as you want from SharePoint Designer, and displayifs.aspx page would still show these particular fields without using JQuery.

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("ready");
function ready()
{
var $t = $("tbody.x_RBDYBAtk6xA9eB6D_0 tr:nth-child(4)");
$t.hide(); 
}
</script>

Thanks

January 12th, 2015 4:06pm

hi

thanks alots my friends .I'm glad for having you

I'mtestingsolutions and say the result

thanks

Free Windows Admin Tool Kit Click here and download it now
January 12th, 2015 10:33pm

hi

my last problem solved

but I have a new problem.

in my InfoPath form I use a button when I buplished it in list every thing is ok

but when the user can see the result they select the row and then select the view item in list ribbon but the problem is here in the view item they can not see the button and I forced put field in ifopath form to user can see the result in view item by textbox

but I should show the button in the view item and user can see the result by the bottonif there is any way plz help me

thanks a lot

February 24th, 2015 3:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics