LimBL Posted July 8, 2016 Report Share Posted July 8, 2016 Hi. Is there any way i can insert a default value into a hidden field if the value of another field is of a certain value. Eg... If field 1 is "apple", when user clicks submit, d app ll insert "red" into field 2 If field 1 is "egg", when user clicks submit, d app ll insert "brown" into field In both cases, user ll only get to select field 1, not field 2 Many Thanks Quote Link to comment Share on other sites More sharing options...
LWSChad Posted July 8, 2016 Report Share Posted July 8, 2016 Use a cascading text field and hide it with getElementsByTagName rather than document.getElementById('someID') (since you know cascading text fields' IDs contain variables, you can't use this to hide them) use document.getElementsByTagName('input')[0] ([0] represents the first input, [1] represents the second, and so-forth) Quote Link to comment Share on other sites More sharing options...
LimBL Posted July 11, 2016 Author Report Share Posted July 11, 2016 Thanks EIQ! Appreciate Quote Link to comment Share on other sites More sharing options...
Kurumi Posted July 9, 2019 Report Share Posted July 9, 2019 Hi @LimBL, You can use the Calculated Value on this certain scenario. In this field, you can use the CASE WHEN for your field 1. To know more about Calculated Value, check it here: https://howto.caspio.com/datapages/datapage-components/calculated-values/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.