Page 1 of 1

Hidden Form Field Type would help a lot

Posted: Mon Feb 09, 2015 6:50 pm
by jegalink
I'm very new to NuBuilder, but I've been impressed with what I've been able to accomplish with it in a short time.

My application is a bit more complicated than just input & output. I'm doing a lot of conditional inserts or selects based on user selections or inputs. As such, I've got several cases where forms are submitting to other forms for multiple steps of an entry process. It would really help if I could pass variable values from one form to the next to maintain state with those variables. This could be done very easily if we had a "hidden form field" object type to add to the forms.

I actually reached a wall with my application. I need to pass values through two steps (on two forms in series), but I don't seem to have a way to do it. Still working on it.

Re: Hidden Form Field Type would help a lot

Posted: Mon Feb 16, 2015 3:53 am
by admin
jegalink,

You can set a hash variable with nuSetHash() in JS and refer to it on the Form it opens.

http://wiki.nubuilder.net/index.php/Jav ... C_value.29

http://wiki.nubuilder.net/index.php/Hash_Variables

Steven

Re: Hidden Form Field Type would help a lot

Posted: Tue Mar 31, 2015 4:01 pm
by jegalink
Thanks, Steven. I'll look into this approach. What I ended up doing to just keep the application moving forward was to use a regular text field to pass through the ID. To keep it hidden, I set the text field to a "password" type so all that gets displayed to the user is "*******". Then I also set the field to not allow changes so they can't mess with it. It's not ideal, since it will cause users to wonder what that field is, but it did the job for now.
admin wrote:jegalink,

You can set a hash variable with nuSetHash() in JS and refer to it on the Form it opens.

http://wiki.nubuilder.net/index.php/Jav ... C_value.29

http://wiki.nubuilder.net/index.php/Hash_Variables

Steven

Re: Hidden Form Field Type would help a lot

Posted: Tue Apr 14, 2015 1:21 am
by admin
.