As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
How to set default value into 'alfresco/forms/SingleTextFieldForm' , when load browser.
Regards
janaka
It extends form so you just need to set a "value" attribute, the key of the value needs to match the textFieldName attribute, an example would be like this:
{ name: "alfresco/forms/SingleTextFieldForm", config: { useHash: false, okButtonLabel: "Search", okButtonPublishTopic: "TEST_PUBLISH", textFieldName: "search", value: { search: "initialValue" } } }
Note that "textFieldname" is "search" which is a key in the "value".
i need to set preference value into "<span class="">SingleTextFieldForm</span>", unless URL provide parameter
<span class="">SingleTextFieldForm</span>
if URL provide parameter , it should apply into "<span class="">SingleTextFieldForm</span>". To do this, i need to set useHash to be true. but then
default value is not applied.
(http://127.0.0.1:8080/share/page/site/advance-search/dp/ws/faceted-search#searchTerm=java&scope=repo )
I think in that case you have 3 options...
thanks
i will try one of this