anchor.diff:  										},
   										{
   											name: 'hideOnSubmission',
  -											boxLabel: 'Hide on Submission'
  +											boxLabel: 'Hide on Submission',
  +											listeners: {
  +												change: function(box, newValue) {
  +													var select = Ext.getCmp('editAttributeForm-defaultCode');
  +													if (newValue === true) {
  +														select.setFieldLabel('Default Code<span class="field-required" />');
  +														select.allowBlank = false;
  +													}
  +													else {
  +
  +														select.setFieldLabel('Default Code');
  +														select.allowBlank = true;
  +														select.clearInvalid();
  +													}
  +												}
  +											}
   										}
   									]
   								}
  
positive.code: 									xtype: 'combobox',
  									fieldLabel: 'Default Code',
  									id: 'editAttributeForm-defaultCode',
  									displayField: 'attributeCodePk.attributeCode',
  									valueField: 'attributeCodePk.attributeCode',
  									value: undefined,
  									name: 'alertType',
  									hidden: true,
  								},
  
negative.code: 				// Retreive codes to populate form options
  				var url = '/openstorefront/api/v1/resource/attributes/attributetypes/';
  				url += record.data.attributeType;
  				url += '/attributecodeviews';
  				Ext.getCmp('editAttributeForm-defaultCode').setStore({
  					autoLoad: true,
  					proxy: {
  