# Text Control Default

**URL:** <https://forums.realmacsoftware.com/t/text-control-default/44069>\
**Category:** Elements API\
**Created:** [August 3, 2024, 2:16am UTC](https://forums.realmacsoftware.com/t/text-control-default/44069 "2024-08-03T02:16:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [August 3, 2024, 2:16am UTC](https://forums.realmacsoftware.com/t/text-control-default/44069/1 "2024-08-03T02:16:34Z")

</div>

Text control - I have this for properties:  
I’m wondering why the default text is not showing up?

{  
“groups”: [{  
“title” : “Group Name1”,  
“icon”: “textformat.size”,  
“properties”: [  
{“title”: “Title:”,  
“property”: “title”,  
“text”: {  
“default”: “Hi”,  
“subtitle”: “A subtitle”  
}  
}  
]  
}]  
}

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [August 3, 2024, 6:40am UTC](https://forums.realmacsoftware.com/t/text-control-default/44069/2 "2024-08-03T06:40:44Z")

</div>

I copied the text property straight from the manual and this did not show, might be my misunderstanding

although I have just got some text property to work

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 3, 2024, 7:38am UTC](https://forums.realmacsoftware.com/t/text-control-default/44069/3 "2024-08-03T07:38:31Z")

</div>

I’ve just taken a look at the manual and it was missing a comma on line 10 after “Hello World”

Here’s the working code and I’ve updated the manual.

```auto
{
    "groups": [        
      {
        "title" : "Text Field Example",
        "properties" : [
            {
                "title": "Text Field",
                "property": "MyTextField",
                "text" : {
                    "default" : "Hello World",
                    "subtitle" : "one",
                }
            }
      ],
    }]
    
}

```

 ![CleanShot 2024-08-03 at 8 .37.36@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/2/6/26a89d3aa00e3c28f8e2e97d5a6099c3fbe7a4e1.jpeg)

---

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [August 3, 2024, 10:06pm UTC](https://forums.realmacsoftware.com/t/text-control-default/44069/4 "2024-08-03T22:06:27Z")

</div>

@dan If you look closely in your screen shot, you will see that the default ‘Hello World’ is not being placed in the original control.

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [August 3, 2024, 10:09pm UTC](https://forums.realmacsoftware.com/t/text-control-default/44069/5 "2024-08-03T22:09:33Z")

</div>

It’s because it’s just been created, If you drop in a fresh copy of the Component, the default text works.
