Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Hidden Form Field Type would help a lot

Post Reply
jegalink
Posts: 16
Joined: Mon Feb 09, 2015 6:17 pm

Hidden Form Field Type would help a lot

Unread post 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.
admin
Site Admin
Posts: 2778
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5

Re: Hidden Form Field Type would help a lot

Unread post 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
jegalink
Posts: 16
Joined: Mon Feb 09, 2015 6:17 pm

Re: Hidden Form Field Type would help a lot

Unread post 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
admin
Site Admin
Posts: 2778
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5

Re: Hidden Form Field Type would help a lot

Unread post by admin »

.
Post Reply