# How to make certain a textfield exists?

**URL:** <https://forum.kirupa.com/t/how-to-make-certain-a-textfield-exists/271018>\
**Category:** Uncategorized\
**Created:** [September 17, 2008, 1:34pm UTC](https://forum.kirupa.com/t/how-to-make-certain-a-textfield-exists/271018 "2008-09-17T13:34:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [September 17, 2008, 1:34pm UTC](https://forum.kirupa.com/t/how-to-make-certain-a-textfield-exists/271018/1 "2008-09-17T13:34:18Z")

</div>

Hi all,

HOw do i make sure a textfield exists with createTextField??

```auto

function showTextContent(txtContent, x, y, w, h) {
..............
var content_txt = websiteContent.createTextField("content_txt", 100, x, y, w, h);
	/ ****
	make use of paginator
	**** /
	if(websiteContent.content_txt){
		paginator.createPages(txtContent, content_txt);
		var numOfPages:Number = paginator.getNumberOfPages();
		trace("numOfPages: "+numOfPages);
	}
........
}

```

the trace doesn’t give the correct num of pages.

However, if i manually create a textfield on the stage in websiteContent it does work???

any tips??
