web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Quote Line form Read Only

(0) ShareShare
ReportReport
Posted on by 184

Hi,

Is there a way to make Quote Line form Read Only when Quote is in Read-Only status. I came across couple of forums which suggests disabling all the fields or making the fields read-only, but this is not what we want.

We have Customer Asset sub-grid on Quote Line form. Button "Remove" on the sub-grid is accessible to users which helps users to remove the customer asset from quote. But we want to enable this button only if the quote is in Draft status. I created a custom enable rule using Ribbon Workbench to return true if the parent form status is Draft. But I think since the sub-grid is on quote line form (and not on quote form) it is unable to get the status correctly. Hence I am looking for a workaround to see if we can make quote line form read-only

Cheers

Deeksha

I have the same question (0)
  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi partner,

    Quote Line cannot be deleted when Quote is read-only, which is be design.

    pastedimage1620110868356v1.png

    So you don't need to customize the Delete button on Quote Line or sub-grid.

    To lock fields on the Quote Line form, we can create a calculated field to show whether Quote is read-only, then create a business rule to lock fields based on the new field.

    pastedimage1620112679740v2.pngpastedimage1620112743622v3.png

    Insert this field on the Quote Line form.

    pastedimage1620113259001v4.png

    Create a business rule.

    pastedimage1620113781044v5.png

    IF

    Whether Quote is read-only equals "Yes"

    THEN
    Lock Existing Product
    Lock Unit
    Lock Quote
    Lock Quantity
    ELSE IF

    Whether Quote is read-only equals "No"

    THEN
    Unlock Existing Product
    Unlock Unit
    Unlock Quote
    Unlock Quantity
  • Suggested answer
    vishal bagadia_crm Profile Picture
    490 on at

    Handedee,

    You can achieve the requirement by using custom rule under Enable Rule on the ribbon button.

    Create one custom Enable Rule. Under the enable rule, add custom rule to add javascript function. Add primarycontrol/PrimarycontrolId as a parameter.

    Write a javascript function that will retrieve the Quote related to Quote Line Item based on ID.(You can use web api to get the Quote along with its status.. (Use CRM Rest Builder)).

    Based on the status of retrieved Quote, you can return True/False from the method into custom enable rule.

    Please mark the Answer as verified, if it solves your purpose.

    Regards,

    Vishal Bagadia

  • Suggested answer
    vishal bagadia_crm Profile Picture
    490 on at

    Hi,

    Another workaround is, you can write a logic to change the status of Quote Line Item, whenever Quote status gets changed.

    If Quote is in draft, Line item would be in draft. If Quote is completed/inactive, Line item will also get inactive.(If it suits your business logic).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans