#IF(#FormError)

{InputError}

#LOOP(#FormErrors.Errors) #IF(#Reason EQ "ALIAS_EXISTS") {DoubleObject} #ELSE {PleaseCorrectErrors} #ENDIF #ENDLOOP
#ENDIF #IF(NOT #DELETE)

{Info0}

  1. {Info1}
  2. {Info2} {CreateAttributesNow}
#ENDIF
#IF(#DELETE)

{Warning}

{AcceptAction}
#LOOP(#DeleteObjects) #ENDLOOP #ENDIF #LOCAL("Alternate",0) #IF(#DELETE) #LOOP(#SORT(#DeleteObjects,"Alias")) #SET("Alternate",1-#Alternate) #ENDLOOP #ELSE #LOOP(#UniversalPortalAttributeSets) #BLOCK("WITH_FORM_ERROR", #FormError) #SET("Alternate",1-#Alternate) #ENDBLOCK #ENDLOOP #ENDIF #ENDLOCAL #IF(NOT #DELETE) #WITH_ERROR(#FormErrors) #ENDWITH_ERROR #ENDIF
{ColumnName} {ProductAttribute} {IsMandatory} {MaxLength} {Position}
#NameOrAlias #UniversalPortalAttribute.NameOrAlias #IF(#IsMandatory){yes}#ELSE {no} #ENDIF #MaxLength #Position
#UniversalPortalAttribute.NameOrAlias #ProductAttribute.NameOrAlias #REM needed to have the same number of input fields if text input field has been disabled #ENDREM #IF(NOT #UniversalPortalAttribute.HasMaxLengthField AND NOT (#ProductAttribute.Class.Alias EQ "ProductAttribute"))#ENDIF
#IF (#NewAlias) #ELSE #ENDIF #LOCAL("OldNewUniversalPortalAttributeID",#NewUniversalPortalAttributeID) #ENDLOCAL #IF (#NewMaxLength) #ELSE #ENDIF #IF(#NewPosition) #ELSE #ENDIF
#IF(#DELETE) #ELSE #ENDIF