![]() |
Admin 5/9/2022 |
It sounds a bit strange that the the same code works diferently in a popup and on a regular page. My guess is that you are not using recommended Javascript APIs and relying on some tags/selectors that work differently in a popup. Check PHPRunner's Javascript API: Also, if you are interested in troubleshooting your Javascript code and finding errors there, we recommend checking this excellent video: |
![]() |
fhumanes 5/17/2022 |
Hello @ppradhan@live.com, I think, it is only an assumption, that your problem occurs because you think the field is called "value_dob_bs_1". I do not know the reason, but when it is a Popup screen, the names of the fields are formed with a different number sequence and it may at one time be "value_dob_bs_23" and in another "value_dob_bs_31". You should not presuppose in the field identifier. In the construction of plugin, the name of the field is provided by the interface, but without the construction of plugin I do not know how to obtain this value. Greetings, |
P
|
ppradhan@live.com author 5/17/2022 |
@fhumanes, thank you sir. You are correct, the fields would appear with different name while at popup window. var id_ad = $("[id^=value_date_ofbirth]")[0].id ; this would get me the id of the date fields correctly in the popup window too. And good news is that when I input english date, it does calculate and auto-populate nepali date in the next field. |
![]() |
fhumanes 5/17/2022 |
Hello, In the case of a phprunner field, of date, this field is not treating it as a "string" field, it is handled as a "datetime" type and I think that your problems can come from. Greetings, |