Thanks Michael for you quick help.
Best regards
Franziska
Am 22.05.2024 um 14:18 schrieb Michael Plate:
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
--
Franziska Rapp
Communication and Information Center (kiz)
Ulm University
--
All messages to this mailing list should adhere to the Code of Conduct:
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-tech/3029b5cb-f642-4a69-8ecb-f421f507114f%40uni-ulm.de.