You are viewing limited content. For full access, please sign in.

Question

Question

Changing the localization of datepicker

asked on April 3, 2017 Show version history

Hi, does anyone know whether is possible to change the localization of the datepicker through javascript in Forms 10.1? I tried the following code but did not work.

$.datepicker.setDefaults($.datepicker.regional['zh-TW']);

 

Thanks

0 0

Answer

SELECTED ANSWER
replied on April 7, 2017

The localized datepicker js file is not loaded by default; you need to define $.datepicker.regional['zh-TW'] before $.datepicker.setDefaults($.datepicker.regional['zh-TW']);

0 0
replied on April 9, 2017

That works! Thanks!

 

Would like to ask if there is any way to change the language on the signature panel also? Such as the label for 'Sign Document', 'Draw', 'Sign', 'Cancel', etc.

0 0
replied on April 10, 2017

There is no easy way to change the language since the signature dialog is not using third-party library and the strings are from Forms backend.

If you want to change them, you could update element text like this:

$('#form-signature-dlg .modal-title').text("Localized Sign Document");

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.