Customize item display form with jslink

hello ,
I would like to customize display form of item to hide the ribbon , the footer and columns name in the form.
How to accomplish my goal with JSLink or any other client side rendering method. 
I look for a solution with no code.
Any help will be appreciated.
Thanks

Hi,
You can deploy it as Sandbox solution by developing custom list definition which includes the custom Display form Page instead of default form page. You embed the style sheet in the display form page. 
http://blogs.technet.com/b/meamcs/archive/2011/09/05/a-listdefinition-with-custom-forms.aspx
http://www.ilikesharepoint.de/2013/11/sharepoint-create-custom-list-forms-with-visual-studio-part-2/ 
kmhsad

Similar Messages

  • Adding Liking functionality on item display form

    Hello:
    We are looking to add the ability to 'Like' a document or an item from the document/items display form.  We've not done things like this in the past.  Does anyone have any suggestions on best approach?
    Thanks
    Joe

    Try below:
    http://spfblike.codeplex.com/
    http://stackoverflow.com/questions/4298300/how-to-implement-the-dislike-like-button
    <form name="ratings">
    <input type="button" name="btnLike" value="Like">
    <input type="button" name="btnDislike" value="Dislike">
    </form>
    https://coderwall.com/p/urb8kg
    EnsureScriptFunc('reputation.js', 'Microsoft.Office.Server.ReputationModel.Reputation', function () {
    Microsoft.Office.Server.ReputationModel.
    Reputation.setLike(aContextObject,
    _spPageContextInfo.pageListId.substring(1, 37),
    _spPageContextInfo.pageItemId, false);
    aContextObject.executeQueryAsync(
    function () {
    // Do something if successful
    }, function (sender, args) {
    // Do something if error

  • Could not open work Item having form with approve option

    Hi all
    I am using a form step in my work flow.
    Display form is working well.
    But when I use approve form, work item is reaching the correct inbox, but while opening the work item, it is showing the message as below instead of showing the form.
    Form cannot be executed (parameters incorrect)
    Message no. SWY_TASK_FORM029
    I could not able to find out, why this message is coming. Also In my work flow no errors are there.
    Can any one help me to solve this issue.
    Regards,
    Avinash.

    Thanks for the reply.
    The below three elements are binded correctly,
    &FORMPROGRAM&
    &FORMDYNPRO&
    &FORMCONTAINERELEMENT&
    In display form below container element is also created, For this element I have binded manually.
    &FORMWORKITEMID&.  Whizard didnot created the biding for this element in Display Form
    But in Approve form container element &FORMWORKITEMID& is not at all created while creating through whizard.
    Does this is causing the Issue?
    Regards,
    Avinash.

  • SP2013 Customize Workflow Task Form with InfoPath 2013 - Unknown error occurred

    Hi everyone,
    After creating "Collect data from user" workflow using SharePoint designer, I need to customize the task form. But when I open the .xsn file (SharePoint generated), without editing anything (for testing purpose), and publish it, I got the message
    box: "An unknown error has occurred. The form template has been published to the server but it can only be opened in InfoPath Filler". I test the same scenario in SharePoint 2010, and it worked. It really annoys me.
    No exception in the log file, and no solution after much searching around.
    Please help.

    Hi john_d
     I got the solution to customize the Workflow task form. We cannot customize the workflow task form from InfoPath 2013, and if some how you are able to publish the task form it then when you publish your workflow then it your workflow will overwrite
    the default task form to your customized one.
    So the solution for it is that whatever fields you want to add to the task form you can just in "TASK FORM FIELDS" and it will display in your task form when you publish your workflow.

  • How to add a column in Item Master form with chooselist

    Hi Experts
    I add a column in Item Master Form in Stock Data Tab. In this column I want to add Choose list. For this I use AfterFormLoad event. It gives Error "Matrix Line Exist" . My code is given below
    If pVal.FormType = "150" Then
                    form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
                    form.PaneLevel = 3
                    oItem = form.Items.Item("28")
                    oMatrix = oItem.Specific
                    Dim chooseObj As ChooseListClass
                    chooseObj = New ChooseListClass
                    chooseObj.AddChooseFromListBinCode(form.UniqueID)
                    oColumns = oMatrix.Columns
                    oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
                    oColumn.Width = 100
                    oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
                    oColumn.TitleObject.Caption = "Def BinCode"
                    oColumn.Editable = True
                    oColumn.ChooseFromListUID = "CFL5"
                    oColumn.ChooseFromListAlias = "U_BinCode"
                    oColumn = oColumns.Item("U_BINCODE")
                    oColumn.Visible = False
                End If
    please give your suggestion
    Regards
    Jitender

    Hi Noor
    Thanks for reply
    I tried your suggestion but problem still there. I am using after form load event. Here matrix has 9 lines (all warehouse). If remove the line then how can I reload warehouse data. Can you suggest in more detail.
    my code is given below
    form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
                    form.PaneLevel = 3
                    oItem = form.Items.Item("28")
                    oMatrix = oItem.Specific
                    MsgBox(oMatrix.RowCount)
                    oMatrix.DeleteRow(1)
                    Dim chooseObj As ChooseListClass
                    chooseObj = New ChooseListClass
                    chooseObj.AddChooseFromListBinCode(form.UniqueID)
                    oColumns = oMatrix.Columns
                    oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
                    oColumn.Width = 100
                    oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
                    oColumn.TitleObject.Caption = "Def BinCode"
                    oColumn.Editable = True
                    oColumn.ChooseFromListUID = "CFL5"
                    oColumn.ChooseFromListAlias = "U_BinCode"
                    oColumn = oColumns.Item("U_BINCODE")
                    oColumn.Visible = False
                    oMatrix.AddRow(1)
    Thanks
    Waiting for reply
    Regards
    Jitender

  • Link Title field to custom display form in SharePoint 2013 blog site

    Hi,
    I have blog site in sharepoint 2013.
    I want to display the item in read only view of the selected item.So I have created one custom display form.
    Now I want to link this display form with the Title Field.
    So that when user click on the title field, the display form should show to view only the item and if the user is approver, can approve also.
    Please help me to achieve this.
    waiting for your quick response.
    Thank you!

    Hi  ,
    According to your description, my understanding is that you want to display custom display form when users click on the title field.
    For achieving your demand, you need to implement an ihttpmodule and intercept the request. For more information, you can refer to the code as below:
    private void context_BeginRequest(object sender, EventArgs e)
    HttpApplication application = sender as HttpApplication;
    if (application != null && application.Context != null && application.Request != null)
    HttpRequest request = application.Request;
    HttpResponse response = application.Response;
    if (request.Url.ToString().ToLower().Contains(http://yoursite/libraryname))
    response.Redirect(newlocationurl);
    Reference:
    http://sharepointgotchas.wordpress.com/tag/httpmodule/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Trying to customize a multiple item lookup field using JSLink

    I'm trying to Customize a multiple item lookup field using JSLink, in SP 2013. This illustrates what I want to do:
    I can replace the ";" with <br /> in the Text column, but not the Lookup column. Here is the JSLink code I'm using for the Text column. 
    (function () {
    var overrideCtx = {};
    overrideCtx.Templates = {};
    overrideCtx.Templates.Fields = {
    'Text': { 'View' : '<#=ctx.CurrentItem.Text.toString().replace(";","<br />")#>' }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
    How can I display each item on separate lines in the Lookup column?

    You can retrieve the values of the lookup column and reformat their display by replacing the following:
    overrideCtx.Templates.Fields = {
    'Text': { 'View' : '<#=ctx.CurrentItem.Text.toString().replace(";","<br />")#>' }
    with something like this:
    overrideCtx.Templates.Fields = {
    'Lookup': { 'View' : function(ctx) {
    var arr=[];
    var fld=ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    for (i=0; i<fld.length; i++) {
    arr.push(fld[i].lookupValue);
    return arr.join("<br/>");
    Here we are looping through each lookup value contained in the multi value lookup field and adding it to an array. Once complete, we use join to flatten the array and separate each entry with the <br/>. Note...this will show each value on a new line,
    but it will be the string value without the hyperlink.  If you want the actual hyperlink to the item, you can rebuild the hyperlink and add that to the array instead. You can get the item's display form from ctx.CurrentFieldSchema.DispFormUrl and the
    item's id from fld[i].lookupId for rebuilding the hyperlink.

  • Form with report, where some items in the form have been given values.

    Hi, greetings:
    I have a question that maybe silly but annoying to me. I need to provide a form with report, where some items in the form have been given values automatically, and these items (display only) are supposed to show given values in the form automatically.
    I used the APEX form with report. The update and delete worked well. But I cannot show automatic values when insert. By default APEX insert form makes every item null; I tried to give value for two items: P5212_USERKEY, P5212_DAILY_VER_DATE with process before header, after header, after regions and before footer, and computation, or set values of these two items in the branch when user hit create button (submit). It never worked out, the two items always displayed null value, and when I insert, I got "ORA-01400: cannot insert NULL into ("TBSBI"."DAILYVERPRODNOTE"."USERKEY")", since I have set up constraint in database that these two columns should not be null.
    Could anyone help on this? any suggestion would be appreciated.
    Sam

    If you have made these values 'Display Only' they would by default not save the session state. Accessing the page items will always return NULL. Did you change the 'Save Session State' option to 'Yes'?

  • How to get/display  time with minutes in a test item

    Dear experts,
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)I've the following requirements.
    In my form, there are three text items and one save button.
    Text items named as
    No_of_days --> Number data type
    (user will enter number of days)
    hours_limit --> Char data type with format mask (HH:MI);
    (user will enter hours with minutes)
    Upto_date_time --> date data type;
    this field calculated as (No_of_days+hours_limit+sysdate)
    User will enter No_of_days or hours_limit:
    Based on the values I've to calculate Upto_date_time
    Here is the problem:
    1) If user doesn't enter hours_limit I want to show default time as " 04:00 PM"
    2) If user enter hours_limit field we should allow them to enter in the following format
    "HH24:MI" format;
    what whould be suitable data type for hours_limit field..
    I tried with char and i've set the format mask as ,
    set_item_property('BLOCK3.hours_limit',format_mask,'HH:MI');
    But I'm geeting the error
    "FRM-50027:Invalid format mask for given datatype"
    Please help to solve this problem,
    Regards,
    Karthi

    Hi vansul ,
    set_item_property('BLOCK3.hours_limit',format_mask,'HH:MI');
    Format mast is only allowed to date data type fields.If i set the hours_limit item's data type as date , I'm getting the error message "ORA-01843:Not a valid month"..
    How could i make this field only getting or display time with minutes?
    Regards,
    Karthi

  • Vendor line item display with internal order

    In Vendor line item display is it possibe to see details of the line item of offsetting account .
    For example a expense account is debited & vendor account is credited .At the time expense account debit a internal order has been assigned in line item.
    User wants to see the vendor line item display ( T code FBL1N) with details of internal order appearing in open  line items display  etc .
    Is this possible .I created a layout with order as a field but order does not show any values in the line display of vendor.
    Please revert back if this can be possibe.
    Thanks
    Manoj

    with a combination of notes
    112312 - Line item - Display of offsetting ac information
    373268 - Line item - new display field
    569939 - Line item - Open FI - Absolute amounts
    1034354 - FAGLL03 - Display of offsetting account information
    you should be able to get it there.

  • Problem with Line Item display of G/L account

    Hi,
    I am struggling with a typical problem that I have two company codes in two different countries.  I have created a tax account with Open Item management and Line Item display in both the company codes.
    When I am trying to post vendor invoices, taxes are being posted on line item wise in one company code but not doing so in other company code eventhough the attributes of the G/L account are same.
    G/L accounts, tax condition types and account keys are same in both the cases.
    Can any body give me an idea to fix the problem.
    thanks in advance,
    Mallik

    HI,
    check the condition types you've defined for the both of the countries
    sprofin accting-f/a gl sett-tax on sales/pur -basic settings-check cal procd--define cond types
    there is a check box named item condition see whether it is ticked for the another company's condn type.
    because due to this only it takes the condn item wise.
    reward pts if it helps.
    Regards

  • How to populate the LOV with warehouse item in Item Roles form

    Hi
    Any one please tell me can we populate the list of values for warehouse items in the item roles form, if so please let me know how to do it.
    Navigation
    Go to OPM Inventory Control
    Go to Workflow
    Go to Item Roles
    Opens a window Item Role Relation.
    When I click on the LOV tab of Warehouse Item, it says list of values contains no entries.
    Thanks in Advance
    Prem.

    This applies for Release 11 or before. (Not for R12)
    Warehouse items are the OPM Items. When you define new item there is field warehouse item and by default it gets populated with the same item name. You can manually changed it to previously defined item name.

  • Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotfo

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

    Hi I want to create a search form with drop down search criteria. This form should then search on the same site and display the search results. Is there HTML available for this? Or an oline site that I can use to build this form? I created a form in Jotform.com, but this form doesn't search the site, instead it sends me an e-mail. Do you have a solution for me? Thanks.

  • Problem with cents:"G/L Account Bal. Display (FS10N)  vs. Line Item Display

    Dear colleagues,
    We have used BSIS table within a batch input program using standard transactions such as F-02 and OASV, in order to leave several "old" G/L accounts completely up to zero, and therefore transferring their complete amount to "new" G/L accounts.
    What we see in several "old" accounts after doing the transfer is that system still displays me 1, 2 or 3 cents in transaction FS10N......but if I double click for its G/L account line item display, system correctly tells me that the old g/l account is completely balanced. Logically, for I have checked in BSIS table through program which is the necessary amount to balance the old g/l account.
    So we can say there is a lack of coordination between what I see in the first screen of FS10N and the Line Item display screen of the g/l account. No doubt, old account is completely balanced and well transferred to new g/l account (checked in BSIS table), but FS10N still reports few cents.........isn´t it somehow mischievous?
    Does anyone know how to clean those cents (which actually are virtual cents)? Is there any sap note reporting this bug and providing the solution?
    Thank you so much for your kind attention on reading my post and best regards.
    F. Albisu

    Dear Neeraj,
    Yes you are right, there a lots of notes related to this issue.
    I have found note 595776 which I think best fit with my problem. Would you hindly read it and confirm to me, from your point of view, I am in the correct track?
    (Of course, the system I am talking to you abput, proceeded to the Euro Conversion in 2002)
    Thanks!

  • Multiple line item display for PAYMENT ADVISE form(script) using F110 tcode

    Dear All,
    I am currently working on PAYMENT ADVISE script ( form ) - for which i have copied the
    form F110_IN_AVIS to zform.
    I am executing the form for output through executing Tcode - F110.
    The output works for single line item entry of vendor line items - but doesnot support
    for muliple line items.
    I have checked the standard program - RFFOUS_C - which has include - RFFORI06 for remittance advice -which supports for single line item display.
    Kindly advise me for the soultion of the same.
    Regards
    HC

    Hi,
    Do you manage to fix it ?
    we experienced the same problems (mass printing smarforms F110), we would like to use one time F110, and generates all the spool, for all the line items.
    Thanks
    Any help would be grateful.
    Thomas

Maybe you are looking for