Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
6 subscribers
Views
3477 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have used an image in the form which is used to auto submit on the click. docu
raghunandanj3904
Certified Senior Developer
over 12 years ago
I have used an image in the form which is used to auto submit on the click. document.forms[0].submit();
Now in the form, before I click the image, i have certain fields to be entered. I enter them and save them into an ac! param and in data i am mapping them to the pv!.
But when i see in the instance, pv!'s have no values assigned to them.
May i know how to set the values to pv! params??
I think cos i am using script to submit the dorm, the data tab assignments are not happening.
May i know the solution for this?...
OriginalPostID-63995
OriginalPostID-63995
Discussion posts and replies are publicly visible
Parents
0
Alicia-Jane Dunn
over 12 years ago
I don't think your issue is the pvs, but instead how you're submitting the form. Instead of auto-submitting, you could just associate the image to a "submit" button using the event rules. That way you're using the OOB conversion of the AC to PV variables, while still using your image onClick submission. This is the practice I use, and I never have issues with my variables being saved. I hope this helps.
Form: Load
window.FormAPI.hide("imageButton")
Image Field: Mouse Up
buttonFieldset=window.Build.util.getComponentContainer("imageButton",window.FormDesigner.runtimeNamespace); buttonFieldset[0].firstChild.click();
Button Field:
Button ID = imageButton
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Alicia-Jane Dunn
over 12 years ago
I don't think your issue is the pvs, but instead how you're submitting the form. Instead of auto-submitting, you could just associate the image to a "submit" button using the event rules. That way you're using the OOB conversion of the AC to PV variables, while still using your image onClick submission. This is the practice I use, and I never have issues with my variables being saved. I hope this helps.
Form: Load
window.FormAPI.hide("imageButton")
Image Field: Mouse Up
buttonFieldset=window.Build.util.getComponentContainer("imageButton",window.FormDesigner.runtimeNamespace); buttonFieldset[0].firstChild.click();
Button Field:
Button ID = imageButton
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data