Copy link to clipboard
Copied
Hello
Appreciate help if there are any script to remove any numbers after (.) And symbol (.) Also
For example
If I write feild like that
it will be shown at another field like that
name of first field : text 1
name of second field: text 2
Copy link to clipboard
Copied
As the custom Calculation script of the second field you can use something like this:
event.value = this.getField("text 1").valueAsString.match(/^\d*/)[0];
Edit: small mistake in the code fixed
Copy link to clipboard
Copied
As the custom Calculation script of the second field you can use something like this:
event.value = this.getField("text 1").valueAsString.match(/^\d*/)[0];
Edit: small mistake in the code fixed
Copy link to clipboard
Copied
Awesome
It is Working
Many thanks dear for your support
Find more inspiration, events, and resources on the new Adobe Community
Explore Now