I just discovered UniversalDashboard few days ago, and it’s look like an interesting tool. But I’m having some issue to understand how to use it properly I believe.
I’m trying to create a webpage to create users, and I would like to display the value input by the user of this dashboard in the red square area when they click on the submit button.
Even if I use the sync-udelement to refresh the block “Sumarry of the information provided”. Nothing is display.
I have to manuall refresh the page and then I will see in completed the line:
Studio / Departement / username
But nothing is display for First name and Given name.
So I’m wondering if I’m not using correcting variables or sync-udelement.
I noticed that Sync-Udelement is working fine with my Dropdown list “departement”. But using a new-udcolumn to embed new-udcard, didn’t help to solve the issue.
Hello @Elhaz and welcome to the community! Good attempt on your script…just having a butchers through it:-
“StudioDpt” you have not created an ENDPOINT for this column, you need to do -Endpoint for the script block to nest the code in…You are using the $Session variable which is great stuff, but I tend to use -RefreshInterval so my end-points are refreshing, and knowing what is held in the $EventData variable, I got a blog site here:- https://psdevuk.github.io/ud-flix/ which covers Content vs Endpoint
I also published https://github.com/psDevUK/UD-Field my own UD-Field, and it’s on https://marketplace.universaldashboard.io/Dashboard/UniversalDashboard.UDField to download. The README on my Github page describes how to use and sync this control, I hope you see how to do it from that…
Thanks again for the help, looking at your script and blog help me to understand better UD.
I think part of my issue was syntaxes and a misusage of Endpoints.
I end-up to use this code for my Summary block, with the usage of Auto-Refresh.