Home > Web Front-end > JS Tutorial > EXTJS FORM HIDDEN TEXTFIELD assignment is not easy to use using value_extjs

EXTJS FORM HIDDEN TEXTFIELD assignment is not easy to use using value_extjs

WBOY
Release: 2016-05-16 18:07:47
Original
1015 people have browsed it

I encountered a very strange problem. When the form submission in ExtJs was created, it took the operator ID from the session, then added a component with xtype as hidden in the form, and wrote a value to it. Something strange happened. There was no problem when doing it on one of the machines. But when I changed to another machine, it said it couldn’t assign values ​​to it. This made me very depressed. I used a method to solve this problem, but I always feel that it is very unpleasant to solve it this way. Have you ever encountered this kind of problem? Please give me some advice.

Let me talk about my solution first

Add an ID to the hidden component and then trigger a method when the form is submitted to use Ext.getCmp('ID ').setValue(userId); takes effect. You can submit the data

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template