Error: survey123:onQuestionValueChanged, is not allowed with the clientId

668
2
12-07-2020 02:55 AM
WwLl
by
New Contributor II

Hey,

So im trying to get values from my questions. But whe i use onQuestionValueChanged, i get the following error: the event, survey123:onQuestionValueChanged, is not allowed with the clientId.

for the clientID i made an application in my portal and took the appID.

WwLl_0-1607338225366.png

let webform = new Survey123WebForm({
	itemId: '', 
	container: '',
	clientId: '',
	portalUrl: '',
	onQuestionValueChanged:test,	
});

function test(data){			
	if(data.field === "untitled_question_1"){
		console.log("value changed");
		console.log(data);		
	}
}

do i miss something? Thanks for helping.

0 Kudos
2 Replies
JodyZhengLiu
Esri Contributor

Hi @WwLl ,

Thanks for the feedback. We have fixed this issue and will be updated in late April. Could you please have another try later?

Thanks,

Jody Zheng Liu

0 Kudos
cansucuoglu_2
New Contributor

 

Hello,

I am still having the same issue.

 

Thanks,

Can

0 Kudos