From: Antonio O. <an...@li...> - 2010-02-27 23:05:21
|
I've succeeded in isolating the problem (but not found a solution). I have only one two fields in the form with |mandatory parameter: {{{field|Location|input type=googlemaps|width=780|height=540|centre=40.89282261530705,16.644287109375|zoom=8|autozoom=off|mandatory}}} {{{field|Accuracy|mandatory}}} The code above does not allow the "mandatory management" javascript to work as expected. Instead, stripping away the |mandatory parameter from the map field, fixes the problem: {{{field|Location|input type=googlemaps|width=780|height=540|centre=40.89282261530705,16.644287109375|zoom=8|autozoom=off}}} {{{field|Accuracy|mandatory}}} The code above does work, if I leave Accuracy empty the mandatory check complains. So, now the problem is: how can I make the Location field mandatory? -- Antonio > I've tried with a simple form with just one field and the mandatory > parameter works as expected. > So probably I have to figure out what's preventing it from working in > the real form. > -- > Antonio > >> I realize now that the "|mandatory" parameter specified in my mandatory >> fields (as explained in Semantic Forms and by Yaron Koren himself, so I >> can't figure out what's wrong) seems to do nothing: I can submit the >> form >> without putting any value in them. >> >> E.g. I have in Form: >> >> {{{field|Accuracy|mandatory}}} >> >> ...and in Template: >> >> Accuracy: [[Accuracy::{{{Accuracy}}}]] >> >> ...but I can submit with an empty field for Accuracy. |