February 21, 2017 at 13:33 #15756
I’m not sure if this forum is the correct place for posting my problem, but I’ll give it a try.
My problem is as follows:
I’m using a New Form with tabs and CCDD and vLookups.
The purpose is as follows:
If I select a value in the CCDD the vLookup is automatically refreshed and showing some values which works great.
What I’m doing now is I added a button to clear the CCDD and the effect should be that the vLookups are empty again but it seems I cannot get this to work.
I’m successful in clearing the CCDD via jQuery:
$("#Untertitel_casc option[value='0']").attr("selected", "selected");
But this seems not to trigger the clearing of the vLookup. However, if I manually set the CCDD to blank the vLookup is cleared correctly (triggered via rule on field change).
I also tried to call the spjs.vlookup._init method in the button click function but this does not work either.
Do you have any idea what could be missing here or what I’m doing wrong ?
Thank you very much in advance.
- This topic was modified 6 years, 7 months ago by Christopher Holubarz.
February 21, 2017 at 13:54 #15759
Forgot the Version Info:
DFFS frontend: 188.8.131.52
DFFS frontend CSS: 4.21 / 4.21
Cascading dropdowns: 3.6.5
Resource management: 2.4.3
vLookup: frontend v2.2.79
- This reply was modified 6 years, 7 months ago by Christopher Holubarz.
February 22, 2017 at 12:36 #15798
I solved it myself.
The problem was, that the hidden Text Box in the CCDD is not cleared if you select the empty entry via jQuery.
The solution was to clear the text of the hidden Textbox via jQuery and everything is working now.
February 24, 2017 at 00:24 #15830Alexander BautzKeymaster
I’m glad you figured it out.
It might work if you use this line:
- You must be logged in to reply to this topic.