What would be the most common way to create a user entry form (e.g. user specific settings like name, age etc). It seems UMG is much more designed for HUD’s in mind instead of a form builder for data entry.
For example, we need a simple age field that asks the users’ age (e.g. 10 - 100 or year) before being able to play. The user should be able to enter numeric values only, hit enter and then continue. What would be the default way to do this? Is this through C++ or do you guys use other tools to do this?
As a remark: we would also like to set an integer with this age value to be passed on to our analytics tool (through blueprints) so we can’t use a detached web form of some kind which we would load upfront.
Hi, you can use a “Text Box” inside of UMG. Then add an event to “On Text Changed” (this event will always fire when the text inside the box changes).
I don’t know how you would make it that the “Text Box” only accepts numerical keyboard input, but you can check whether or not the value inside the textbox is a number or not and convert it to an int if it is a number. So you could disable the continue button until a valid number has been entered.
thanks for your suggestion. Your workaround is great but again proves that the UMG widget isn’t really designed for this kind of work.
I wonder whether there would be other solutions - probably through code or using another tool than UMG - that are more appropriate to have these kinds of fields (which are very common to program with webforms but tend to be very difficult when used within UE)?