Jump to content
  • 0

Conditional field input


Marty

Question

For a submission form, I have a date field that will be the same date field as another in the related table if that date field is prepopulated.  If there is no entry in that field, then the submission form field needs to have the user determine the date.   How to accomplish this.  I am finding that if it is a calculated field, then there can be no input.   I can pass the other date parameter to this field (and then nothing is passed in those other cases), but it is still an input field and allows the user to override the passed date in the prepopulated instance - which I don't want.   

Any suggestion?

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Im not sure if I understand your workflow perfectly but as I understand, You do have a date field. this datefield is sometimes pre-populated and sometimes not. If this is pre- populated, the user shall not be able to edit those. However, if it is not pre-populated, then the user should be able to set a value.

If this is the case, I think it can be done by using the rules feature and a virtual field.

You are going to make the virtual field and the date field load the pre-defined value you wanted. Then, envelope the virtual field with HTML block containing html script for hiding: see instructions here: https://howto.caspio.com/tech-tips-and-articles/common-customizations/how-to-hide-fields-in-datapages/

Then, make a rule that if the virtual field is not blank, it will hide the date field.

with this, the date field will only appear if it has no pre-defined value. 

I hope this helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...