Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
linenumberstrue
def groups = api.user().allGroups
def groupList = []

for (group in groups) {
  groupList.add(group.uniqueName)
}

  if (groupList.contains("Block Submit")) {
    quoteProcessor.addOrUpdateInput(
	"ROOT",
	["name": "submitQuoteEnable",
     "label": "Enable Submit Quote",
     "type": InputType.HIDDEN,
     "required": true,
     "value": null
    ])
  }else{
    quoteProcessor.addOrUpdateInput(
	"ROOT",
	["name": "submitQuoteEnable",
     "label": "Enable Submit Quote",
     "type": InputType.HIDDEN,
     "required": true,
     "value": "Yes"
    ])
  }


The full code is available in Git - SubmitQuoteEnable.groovy