diff --git a/src/app/workspace/resource/operations/add-value/add-value.component.html b/src/app/workspace/resource/operations/add-value/add-value.component.html
index 47e5c2c225..9f2d3206b6 100644
--- a/src/app/workspace/resource/operations/add-value/add-value.component.html
+++ b/src/app/workspace/resource/operations/add-value/add-value.component.html
@@ -13,7 +13,7 @@
+ [parentResource]="parentResource" [propIri]="resourcePropertyDefinition.id" [currentOntoIri]="ontoIri">
diff --git a/src/app/workspace/resource/operations/add-value/add-value.component.ts b/src/app/workspace/resource/operations/add-value/add-value.component.ts
index 31387ca96e..a892fe24d3 100644
--- a/src/app/workspace/resource/operations/add-value/add-value.component.ts
+++ b/src/app/workspace/resource/operations/add-value/add-value.component.ts
@@ -57,13 +57,15 @@ export class AddValueComponent implements OnInit, AfterViewInit {
// gui element in case of textValue
textValueGuiEle: 'simpleText' | 'textArea' | 'richText';
+ ontoIri: string;
+
constructor(
@Inject(DspApiConnectionToken) private _dspApiConnection: KnoraApiConnection,
private _valueOperationEventService: ValueOperationEventService,
private _valueService: ValueService) { }
ngOnInit() {
-
+ this.ontoIri = this.parentResource.type.split('#')[0];
this.mode = 'create';
// since simple text values and rich text values share the same object type 'TextValue',