Can't set a dashbord time value in form

Hello,
I'm trying to set the value of date input, in the form element. So I tried to inject the time in by json object, just like you do with other input types in form. But for some reason it doesn't work. Input value stays blank after injecting data. I have no clue what am I doing wrong.
Here's my flow:

[{"id":"8c8e52738736b72b","type":"ui_form","z":"7aeceadca429cc4c","name":"","label":"","group":"d17d627c5ecd8fd8","order":12,"width":4,"height":1,"options":[{"label":"Time","value":"text123","type":"time","required":true,"rows":null}],"formValue":{"text123":""},"payload":"","submit":"submit","cancel":"cancel","topic":"0","topicType":"str","splitLayout":"","x":350,"y":80,"wires":[[]]},{"id":"573bb5c765f76643","type":"inject","z":"7aeceadca429cc4c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"text123\": \"12:00\"}","payloadType":"json","x":170,"y":80,"wires":[["8c8e52738736b72b"]]},{"id":"d17d627c5ecd8fd8","type":"ui_group","name":"Group 1","tab":"c77ac24ef7619a05","order":1,"disp":true,"width":6},{"id":"c77ac24ef7619a05","type":"ui_tab","name":"Tab 4","icon":"dashboard","order":4}]

You need to inject an actual time date value eg - 1970-01-01T10:00:00.000Z

Hi, I tried doing it this way but it didn't work

[
    {
        "id": "352ae1707eb9ab1d",
        "type": "inject",
        "z": "aa75d57d2ade3cab",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"time\":\"1970-01-01T10:00:00.000Z\"}",
        "payloadType": "json",
        "x": 410,
        "y": 100,
        "wires": [
            [
                "1c8acc3d0c1ad7b6"
            ]
        ]
    },
    {
        "id": "1c8acc3d0c1ad7b6",
        "type": "ui_form",
        "z": "aa75d57d2ade3cab",
        "name": "",
        "label": "",
        "group": "",
        "order": 20,
        "width": 0,
        "height": 0,
        "options": [
            {
                "label": "",
                "value": "time",
                "type": "time",
                "required": true,
                "rows": null
            }
        ],
        "formValue": {
            "time": ""
        },
        "payload": "",
        "submit": "submit",
        "cancel": "cancel",
        "topic": "topic",
        "topicType": "msg",
        "splitLayout": "",
        "x": 580,
        "y": 100,
        "wires": [
            []
        ]
    }
]

it works for me ?

works for me too...

Well... that's wired. Maybe there's something wrong with my dashbord installation. I'll try to reinstall dashboard

Does it display anything when you inject ?

No, it stays the same as it was. just "--:--". Even reinstallation of dashboard did nothing

Sorry not sure what to sugest then ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.