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
--
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/b58eb9bf-b27a-47ed-961b-68f852a2a917%40bibliothek.uni-kassel.de.
smime.p7s
Description: Kryptografische S/MIME-Signatur
