someone have already used dialog_buttons_ok_cancel but meet error Element type "g:dialog_buttons_ok_cancel" must be followed by either attribute specifications, ">" or "/>".

display10
Kilo Explorer

I tried to create a dialog window. but when i use <g:dialog_buttons_ok_cancel ok="return validateComments()"ok_type="button" cancel_type="button" /> in my html . it caused the error  Element type "g:dialog_buttons_ok_cancel" must be followed by either attribute specifications, ">" or "/>". some one have found a solution for this?

thanks 

7 REPLIES 7

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Use it like this

<g:dialog_buttons_ok_cancel ok="return validateComments()"ok_type="button" cancel_type="button" > </g:dialog_buttons_ok_cancel> 

 

Please mark my answer correct/helpful if it helped you solve your issue.

-Anurag

-Anurag

Hey,

 

Just checking if this worked or not? If it id then can you please close this thread by marking my answer correct?

-Anurag

-Anurag

I tried this but it's still showing me the same error

Michal Gawlows1
Mega Expert

I know it is pretty old but if you like me learning about Modal from SN Guru and got to this topic the error can be fixed by adding space in :

 

ok="return validateComments()<add space here>"ok_type="button"