First letter in caps for predictive model initial value

Hello!

I recently managed to implement my first predictive model in appsheet. I set it as initial value when adding a new item. The problem is that it sets the inital value (type enum) in small letters even though the enum has a caps first letter.

Is there a workaraound for that? Thx for the help!

Emilio

Solved Solved
0 12 558
1 ACCEPTED SOLUTION

Perhaps even easier!

ANY(
  INTERSECT(
    {"Tony", "Emilioudi", ...},
    LIST(PREDICT("Your Model"))
  )
)

View solution in original post

12 REPLIES 12

Any Ideas how to fix the issue?

Chiming in @tony

Hi @emilioudi, thanks for bringing this bug to our attention. Weโ€™ll work on fixing it.

In the mean time, hereโ€™s a workaround (also known as a โ€œhackโ€) that should unblock you for now:

IFS(
  PREDICT("Your Model") = "tony", "Tony",
  PREDICT("Your Model") = "emilioudi", "Emilioudi"
...
)

Hi @tony your โ€œhackโ€ worked thank you for that!
although for some columns with the type enum i have more than 30 different values which makes for a long formula

Emilio

Perhaps easier:

SWITCH(
  PREDICT("Your Model"),
  "tony", "Tony",
  "emilioudi", "Emilioudi",
  ...
)

Perhaps even easier!

ANY(
  INTERSECT(
    {"Tony", "Emilioudi", ...},
    LIST(PREDICT("Your Model"))
  )
)

thank you @Steve Steve this is easier, especially for the long columns with a lot of values

Does appsheet not have a function for capitalizing and uncapping letters?


TITLECASE()?
For fun technically:
UPPER(INITIALS(PREDICT(โ€œYour Modelโ€))&Right(PREDICT(โ€œYour Modelโ€), LEN(PREDICT(โ€œYour Modelโ€)-1) should get a title case so long as everything is 1 word right?

There is no TITLECASE() equivalent function.

Your expression would work fine.

Top Labels in this Space