Enter key vs Return key in Editable Form

Sometimes when filling out an editable field in a PDF Form the button on the bottom right of the keyboard is a checkmark and when pressed it acts as an "Enter" key:



and sometimes the key is a "Return" key and will insert a newline:


I want to understand how to have consistency with this key. Also, sometimes inserting in a newline into a field causes the app to crash with error: 

Fatal Exception: java.lang.IndexOutOfBoundsException

setSpan (7 ... 7) ends beyond length 6


I assume this is because the field is supposed to only have length 6, but adding in the newline character somehow gets around the length limit. Is this a bug?



7 Replies

SP SarathKumar Prakash Syncfusion Team January 6, 2022 11:43 AM UTC

Hi Scott, 
 
We were able to reproduce the issue, “Keyboard showing inconsistent keys while using editable form”. Currently, we are validating this issue and we will update the further details on January 10, 2022.   
 
But we were unable to reproduce the issue “Sometimes inserting newline into a field causes the app crash”
Kindly provide the following details to analyze more on this issue. 
1.Simple sample to reproduce the issue.    
2.Replication video to reproduce the issue.  
3.PDF Document   
4.Platform  
5.SfPdfViewer version.  
6.Xamarin Forms version.  
7.Device Specifications 
 
Regards, 
Sarath Kumar. 



SL Scott Love January 6, 2022 04:50 PM UTC

1. Sample project https://drive.google.com/file/d/1usDGubWxLoodpg5w36o2AeDiO8ZOGVX9/view?usp=sharing

2. Video -> https://youtu.be/tS3rbgUJhy0

3. Pdf File https://drive.google.com/file/d/1UiiSkyP_ZFRpfb1tjxlQyQw5hn4d9i2T/view?usp=sharing

4. Platform: Android

5. SfPdfViewer 19.4.0.41

6. Xamarin Forms 17.0.0.343

7. Pixel 5 Android 11.0 Emulator



SL Scott Love replied to Scott Love January 6, 2022 05:00 PM UTC

I should note that this issue only occurs for certain fields. In this example, I used the PIN field on the second page of the form. I entered in 12345, hit enter, and the app crashed.



SP SarathKumar Prakash Syncfusion Team January 7, 2022 12:52 PM UTC

Hi Scott,

We were able to reproduce the issue, “App crash occurs while typing text in specific form field and click enter in keyboard. Currently, we are validating this issue and we will update the further details on January 11, 2022.  

Regards,
Sarath Kumar.
 



SP SarathKumar Prakash Syncfusion Team January 10, 2022 01:54 PM UTC

Hi Scott, 
  
We have confirmed that the issue “Keyboard showing inconsistent keys while using the editable form in Xamarin.Forms Android platform” is a defect and logged a defect report for this issue. The patch for this issue will be delivered on January 31, 2021.
Please find the feedback for this issue,
 

Regards,
Sarath Kumar.
 



SP SarathKumar Prakash Syncfusion Team January 11, 2022 01:51 PM UTC

Hi Scott, 
  
We have confirmed that the issue “Application crashes while adding text to certain text fields and clicking enter in the keypad in Xamarin.Forms Android platform” is a defect and logged a defect report for this issue. The patch for this issue will be delivered on February 1, 2022. 
Please find the feedback link below,     
 
Regards, 
Sarath Kumar. 



SP SarathKumar Prakash Syncfusion Team January 31, 2022 03:14 PM UTC

Hi Scott, 

We have resolved the issues Keyboard showing inconsistent keys while using the editable form in Xamarin.Forms Android platform and “Application crashes while adding text to certain text fields and clicking enter in the keypad in Xamarin.Forms Android platform”. Custom NuGet for the both issues can be downloaded from the following link.        
Disclaimer: Please note that we have created this NuGet for version 19.4.0.47 specifically to resolve the following issue reported in this forum 171706 
Note : Kindly follow the steps to clear the NuGet cache and then install patched NuGet to get the issue resolved.              
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache            
This fix will be included in our 2022 Volume 1 main release which is expected to be available in the month of March 2022.
 
 
Regards,
Sarath Kumar.
 


Loader.
Up arrow icon