This topic is locked
[SOLVED]

 Add Field on the fly

12/5/2018 8:27:26 AM
PHPRunner General questions
gehrenfeld author

I have a database which two of the fields are size and size_qty.
What I need is:

when one of my staff is placing a order and they come to the size field the will pick the size from the size table drop-down. Like XL and then in the size_qty the amount of that size.
Sometimes there are many sizes for the order. How would I handle adding more sizes and qty when I don't how many sizes they will be. I don't want to have multiple size field's in the table. Unless I have to.
If I have to have many size and size_qty fields in the table how would I not show all the fields at once, but show them as needed?
I guess what I need is a dynamic size and size_qty fields in a table.

admin 12/5/2018

I guess other users will be interested to see how you solved it.

C
cristi 12/11/2018

Yes.

I am really curios about this because I also have this problem with some applications - I need fields to be added dynamically.

HJB 12/11/2018

@cristi
... for inspiration purposes only, http://asprunner.com/forums/topic/24454-dynamically-make-fields-readonly-based-on-value-from-another-field/, though not being direct the issue, but on read-only affairs here, is providing ways to go.
quote excerpt ex https://xlinesoft.com/phprunner/docs/control_object.htm

getDispElem()

Returns jQuery object - the element (input, textarea, select etc.) that displays the value of the selected field.