Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
Câu hỏi đã đóng với nguyên nhân: Question / Code not indented bởi wwy trên 27/05/2024 03:28:20
1 Trả lời
1207 Lượt xem
   

Hi, 

Please advise how to make the below attribute functional. With below code, I can save the record without entering "measure_data_ids". The attribute  required="test_type_id ==5" did not work.


   

          

                    

                                 

                                  

                                  

                    

           

 




Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hmm normally, we don't hard code like that. Assume 5 is the value you want need to be required, let's create a non store field to has the value which id is 5, then the required now will be equired="test_type_id ==require_field" (not u need to add field="require_field" invisible="1" before declare require attr)

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Duong,
Sorry, please provide more deatils

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 25
2568
2
thg 5 25
5948
1
thg 3 25
1715
4
thg 3 25
4558
3
thg 2 25
5559