Hidden Form Field Type would help a lot

Hidden Form Field Type would help a lot

Postby jegalink » Tue Feb 10, 2015 3:20 am

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.
jegalink
 
Posts: 16
Joined: Tue Feb 10, 2015 2:47 am

Re: Hidden Form Field Type would help a lot

Postby admin » Mon Feb 16, 2015 12:23 pm

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/Javascript_Functions#nuSetHash.28name.2C_value.29

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

Steven
admin
Site Admin
 
Posts: 3162
Joined: Mon Jun 15, 2009 9:53 am

Re: Hidden Form Field Type would help a lot

Postby jegalink » Tue Mar 31, 2015 11:31 pm

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/Javascript_Functions#nuSetHash.28name.2C_value.29

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

Steven
jegalink
 
Posts: 16
Joined: Tue Feb 10, 2015 2:47 am

Re: Hidden Form Field Type would help a lot

Postby admin » Tue Apr 14, 2015 8:51 am

.
admin
Site Admin
 
Posts: 3162
Joined: Mon Jun 15, 2009 9:53 am


Return to Feedback (what do you use nuBuilderPro for?)