form section with visible controle cant save data!!

Confluence User - 02 Jul, 2015

I have a app. The app have two form for one table.

Form A for basic data input. Form B  use section visible  control user input to some field.

But the field in the section with visible controle can't save user's inputed data.

I move the field to the other section without visible of same form , all back normal, the form save data

corrected.Why !!  If the field in the section with visible can't input data ,only for show ? Or is this a bug?

joget is "Joget Workflow - Joget Inc. All Rights Reserved. version:4.0.16 - build 1873 "

forms

3


02 Jul, 2015
confluenceUser
confluenceUser

Value in hidden section will only be use when that section is visible, it's useful when you want to extend some extra information.

For example

field1(radio) label = Approval  option in this field = Approved and Rejected

but when ever I choose rejected, I want to send a reason to the performer why his form was rejected.

so I'll use this field to control section2 visibility which will make section2 visible when I choose rejected 

and Section2 contain field2(textarea)  label = Reason 


That mean if I selected Approved then every field in section2 will not be use. (seem like it never exist, you can not refer field2 from this form in any other form)

so if you selected Rejected in field1 it will do the opposite thing.


I hope you understand what I've meant. 

 

03 Jul, 2015
confluenceUser
confluenceUser

I get what is wrong.

 

I pass requestParam to control section visibility from datalist hyperlink. Because requestParam of 

hyperlink cant be chinese character(because no URL encoding), so I pass "rejected", the section

show. Then I want to save "rejected" to chinese "拒绝", i user javascript in custom html change the

value of field1 to "拒绝". when i submit ,I guess the field1's value isnt "rejected". So the field2 cant be

updated.

 

My final solution is set "field1 value to display section" with chinese rejected "拒绝". After I

pass "rejected" to the field1, then i user js to change "rejected" to chinese "拒绝", then use

$('[name="field1"]').change() trigger event  change ON field1 ,  Then I get corrected result.

 

thank you for reply.

 

03 Jul, 2015
confluenceUser
confluenceUser

And When will datalist hyperlink url encoding be Implement?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print