Hi all.
There is a problem. When some property value exists in blueprint and it's blank, it's autofilled with 'undefined' string in live copies. Which can sometimes break the validation. How can I avoid this autofilling?
UPD: 'undefined' string only appears when Edit Dialog is opened
Views
Replies
Total Likes
You can set default property value in the sling model:
@Model(adaptables=Resource.class)
public class MyModel
{
@Inject
@Default(values="")
private String name;
}
or add a condition to check property value and set default value if it's undefined.
Hi @Siva_Sogalapalli !
Thanks for your answer.
I made a small update of my post yesterday. Will your answer be the same?
@kaltavskii do you have this issue for the page properties or in component within live copy?
@Siva_Sogalapallifor the page properties
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies