Hi,
I have field1 for user input, then another field2 with value set by javascript when user input to the field1. Then values will be saved to DB.
When field2 is not hidden and 'editor' is displayed, then all values are saved to DB ok.
However, when field2 is hidden or when the 'editor' is not displayed, then its value is not captured.
Is this a bug or how this can be done?
Thanks,
Xiaoli
hidden field does not have value captured.
Moderators: Jon, Steve, Ian, Dave
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
Steve
- Moderator

- Posts: 423
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi Xiaoli,
I just tested this in my version of 4.4 and everything appears to work as expected.
I have three fields mapped to a resource. F1, F2, F3.
F1 and F3 are enterable fields on the form. F2 is hidden or display only.
script:
Could you be doing a fetch before the insert/update and clearing the field by mistake?
Steve
I just tested this in my version of 4.4 and everything appears to work as expected.
I have three fields mapped to a resource. F1, F2, F3.
F1 and F3 are enterable fields on the form. F2 is hidden or display only.
script:
Code: Select all
fields.F2.value = 'TEST';
resources.MY_RESOURCE.insert();
Steve
0 x
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
- jig
- Ebase User
- Posts: 30
- Joined: Sun Oct 09, 2011 10:16 am
- Location: UK
Hi Xiaoli,
Make sure that 'field2' is not set as hidden in Ebase. If it is, then Ebase will not include 'field2' in the HTML and hence JavaScript won't find it. To get around this, you can always use CSS to hide 'field2' in UI.
Hope this helps!
Regards
Jignesh
Make sure that 'field2' is not set as hidden in Ebase. If it is, then Ebase will not include 'field2' in the HTML and hence JavaScript won't find it. To get around this, you can always use CSS to hide 'field2' in UI.
Hope this helps!
Regards
Jignesh
0 x
Regards,
Jignesh
Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: [email protected]
Jignesh
Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: [email protected]
- Wai
- Moderator

- Posts: 165
- Joined: Wed Sep 12, 2007 9:04 am
- Location: Sandy, UK
- Contact:
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Who is online
Users browsing this forum: No registered users and 38 guests
