11-17-2016 05:34 AM
Hi,
How to set default value into 'alfresco/forms/SingleTextFieldForm' , when load browser.
Regards
janaka
11-17-2016 10:10 AM
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".
11-17-2016 12:42 PM
i need to set preference value into "SingleTextFieldForm
", unless URL provide parameter
if URL provide parameter , it should apply into "SingleTextFieldForm
". To do this, i need to set useHash to be true. but then
default value is not applied.
11-17-2016 12:59 PM
I think in that case you have 3 options...
11-17-2016 01:05 PM
thanks
i will try one of this
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.