calculate with a javascript function to it self field line

534
2
Jump to solution
03-02-2023 02:33 AM
GrégoireCATINEAU
New Contributor III

Hello,

I would like to apply a uppercase javascript function on the field that is on the same line than the input field to force uppercase input.

 

pulldata("@javascript","uppercase.js","touppercase",${C22_ENS})

the field 22_ENS is on the same line, but it's don't work ...

 

 

0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

Try the following:

  • Add a text question to get the original text from the user
  • Add a separate question (a calculate for example) and calculate with your touppercase function
  • You can set the bind::esri:fieldType column of the first question to null if you are interested in getting that original text in your feature layer

If your calculation in field 22_ENS uses the value from field 22_ENS, you will be creating an endless loop (recursive). That is not allowed.

View solution in original post

0 Kudos
2 Replies
IsmaelChivite
Esri Notable Contributor

Try the following:

  • Add a text question to get the original text from the user
  • Add a separate question (a calculate for example) and calculate with your touppercase function
  • You can set the bind::esri:fieldType column of the first question to null if you are interested in getting that original text in your feature layer

If your calculation in field 22_ENS uses the value from field 22_ENS, you will be creating an endless loop (recursive). That is not allowed.

0 Kudos
GrégoireCATINEAU
New Contributor III

Thank you very much Ismael.

0 Kudos