Announcement

Collapse
No announcement yet.

Custom view for /create

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom view for /create

    Hi,
    I have to change "create" view for a custom entity like this .../#Quote/create.
    How can I override view and customize only this template?

  • #2

    Alternately I can override
    Code:
    setupCreateButton: function () {[INDENT]if (this.quickCreate) {        [/INDENT][INDENT=2]this.menu.buttons.unshift({            [/INDENT][INDENT=3]action: 'quickCreate',            [/INDENT][INDENT=3]label: 'Create ' + this.scope,            [/INDENT][INDENT=3]style: 'primary',            [/INDENT][INDENT=3]acl: 'create',            [/INDENT][INDENT=3]aclScope: this.entityType || this.scope        [/INDENT][INDENT=2]});    [/INDENT][INDENT]} else {        [/INDENT][INDENT=2]this.menu.buttons.unshift({            [/INDENT][INDENT=3]link: '#' + this.scope + '/create',            [/INDENT][INDENT=3]action: 'create',            [/INDENT][INDENT=3]label: 'Create ' +  this.scope,            [/INDENT][INDENT=3]style: 'primary',            [/INDENT][INDENT=3]acl: 'create',            [/INDENT][INDENT=3]aclScope: this.entityType || this.scope        [/INDENT][INDENT=2]});    [/INDENT][INDENT]}[/INDENT]
     },
    in list view using this https://github.com/espocrm/documentation/blob/master/docs/development/custom-views.md only for Quote, changing action and link. They will point to a custom page in Quote, so how can I create a custom page under Quote? ^^
    Last edited by Effe; 05-24-2017, 10:26 AM.

    Comment


    • #3
      Hello
      What view do you want to change? Creation from related entity (Account or Opportunity) or in the Quote list view? if you need to change quick create view, set in Quote clientDefs modalViews edit view

      Comment

      Working...
      X