Question: I am creating an Input Dialog using kivymd. Whenever I try to fetch the text from the text field, it doesn't output the text, rather it seems like the text is not there. (the dialog just pops up ok and the buttons are working fine).

part of the kivy code
=====================

```
<Content>
    MDTextField:
        id: pin
        pos_hint: {"center_x": 0.5, "center_y": 0.5}
        color_mode: 'custom'
        line_color_focus: [0,0,1,1]

```

part of the python code
=======================

```py
class Content(FloatLayout):
    pass

class MenuScreen(Screen):
    def __init__(self, **kwargs):
        super(MenuScreen, self).__init__(**kwargs)

    def show_confirmation_dialog(self):
        # if not self.dialog:
        self.dialog = MDDialog(
            title="Enter Pin",
            type="custom",
            content_cls=Content(),
            buttons=[
                MDFlatButton(
                    text="cancel",on_release=self.callback
                ),
                MDRaisedButton(
                    text="[b]ok[/b]",
                    on_release=self.ok,
                    markup=True,

                ),
            ],
            size_hint_x=0.7,
            auto_dismiss=False,

        )
        self.dialog.open()

    def callback(self, *args):
        self.dialog.dismiss()

    def ok(self, *args):
        pin = Content().ids.pin.text

        if pin == "":
            toast("enter pin")

        else:
            toast(f"pin is {pin}")

```

Answer: 
Go to your Canvas and change the **Render Mode** from **Screen Space-Overlay** to **Screen Space-Camera**. I think that should fix your problem.
Yes, chage your setting to **Screen Space-Camera** but use these settings (under render camera put your camera):

[![enter image description here](https://i.stack.imgur.com/vSrxk.png)](https://i.stack.imgur.com/vSrxk.png)