Hi Franziska,
Am 22.05.24 um 13:23 schrieb Franziska Rapp:
> Hi,
>
> We would like to remove the placeholder text in the input fields during
> submission, e.g. "Author" in the Author field, "Title" in the Title
> field etc.
>
> Which modifications do we need to make?
[…]
solution is CSS:
dynamic-ng-bootstrap-input input[type=text]::placeholder{
opacity: 0 !important;
}
this is just for the standard text input (onebox), it works by setting
the opacity of the placeholder to 0, so the placeholder is there, but
not visible
solution in Typescript:
in your dspace-angular folder, open
src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts
and in the ngOnInit function set the placeholder of the model to be empty:
[…]
ngOnInit(): void {
if( this.model.inputType=='text') {
this.model.placeholder='';
}
[…]
there are other places maybe…
CU
Michael